Fix paper size condition

Because the way popen works we need to use a "=" on the argument (otherwise the space splits the argument in two elements)
github/fork/sternenseemann/patch-1
Manuel Genovés 2019-12-22 02:45:53 +01:00
parent 109e9efbcc
commit 2fec09999b
1 changed files with 2 additions and 2 deletions

View File

@ -273,8 +273,8 @@ class Export:
"no": None
},
{
"condition": self.get_paper_size() == "a4" and (to_fmt == "odt" or to_fmt == "docx"),
"yes": "--reference-doc " + helpers.get_reference_files_path('reference-a4.'+to_fmt) + to_fmt,
"condition": (self.get_paper_size() == "a4" and (to_fmt in ("odt", "docx"))),
"yes": "--reference-doc=" + helpers.get_reference_files_path('reference-a4.' + to_fmt),
"no": None
},
{