From 94018ed33af1a9a0a7814f7927416a874bbd1b04 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Fri, 2 Mar 2018 16:00:00 -0600 Subject: [PATCH] Fix multi-page Graph output to pdf with filenames containg spaces (#560) Fixes #10470 --- gramps/gen/plug/docgen/graphdoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/plug/docgen/graphdoc.py b/gramps/gen/plug/docgen/graphdoc.py index 359bc978f..f68e3105f 100644 --- a/gramps/gen/plug/docgen/graphdoc.py +++ b/gramps/gen/plug/docgen/graphdoc.py @@ -986,7 +986,7 @@ class GVPdfGsDoc(GVDocBase): os.system(command) # Merge pieces to single multipage PDF ; 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)) os.system(command)