Fix multi-page Graph output to pdf with filenames containg spaces (#560)

Fixes #10470
This commit is contained in:
Paul Culley 2018-03-02 16:00:00 -06:00 committed by Sam Manzi
parent ffd77dc404
commit 94018ed33a

View File

@ -986,7 +986,7 @@ class GVPdfGsDoc(GVDocBase):
os.system(command) os.system(command)
# Merge pieces to single multipage PDF ; # Merge pieces to single multipage PDF ;
command = '%s -q -dBATCH -dNOPAUSE '\ command = '%s -q -dBATCH -dNOPAUSE '\
'-sOUTPUTFILE=%s -r72 -sDEVICE=pdfwrite %s '\ '-sOUTPUTFILE="%s" -r72 -sDEVICE=pdfwrite %s '\
% (_GS_CMD, self._filename, ' '.join(list_of_pieces)) % (_GS_CMD, self._filename, ' '.join(list_of_pieces))
os.system(command) os.system(command)