Author: Francois Mazen <francois@mzf.fr>
Description: SOURCEFILE was not quoted and wasn't handling spaces in the path of the source file
Forwarded: https://github.com/getting-things-gnome/gtg/pull/937

--- a/GTG/plugins/export/export_templates/script_pocketmod
+++ b/GTG/plugins/export/export_templates/script_pocketmod
@@ -22,8 +22,8 @@
 
 TMPFOLDER=`mktemp -d /tmp/pocketmod.XXXXXXXXXX`
 OUTFILE=`mktemp /tmp/pockemod.XXXXXXXXXXXXX`.pdf
-SOURCEFILE=$1
-pdflatex -interaction nonstopmode -output-directory $TMPFOLDER -jobname temp $SOURCEFILE  1>&2
+SOURCEFILE="$1"
+pdflatex -interaction nonstopmode -output-directory $TMPFOLDER -jobname temp "$SOURCEFILE"  1>&2
 PDFFILE=$TMPFOLDER/temp.pdf
 pdftk $PDFFILE cat 6 7 8 1 output $TMPFOLDER/seite6781.pdf   1>&2
 pdftk $PDFFILE cat 5 4 3 2 output $TMPFOLDER/seite5432.pdf   1>&2
