forked from Mirrors/apostrophe
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
parent
109e9efbcc
commit
2fec09999b
|
@ -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
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue