]> git.lyx.org Git - features.git/commitdiff
Amend 4fd6edf3
authorThibaut Cuvelier <tcuvelier@lyx.org>
Thu, 23 Sep 2021 21:40:21 +0000 (23:40 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Thu, 23 Sep 2021 21:40:21 +0000 (23:40 +0200)
Escape paths in the generated RC file.

lib/configure.py

index b2040126714000ee394050796447ef2ac7477070..d13b3145d4918d0b1fccc8e89f6db773ef9c395c 100644 (file)
@@ -1311,6 +1311,7 @@ def checkConverterEntries():
                     #       even when requested with --pdf. This is a problem if a user
                     #       clicks View PDF after having done a View DVI. To circumvent
                     #       this, use different output folders for eps and pdf outputs.
+                    cmd = cmd.replace('"', '\\"')
                     addToRC(r'\converter lilypond-book latex     "' + cmd + ' --safe --lily-output-dir=ly-eps $$i"                                ""')
                     addToRC(r'\converter lilypond-book pdflatex  "' + cmd + ' --safe --pdf --latex-program=pdflatex --lily-output-dir=ly-pdf $$i" ""')
                     addToRC(r'\converter lilypond-book-ja platex "' + cmd + ' --safe --pdf --latex-program=platex --lily-output-dir=ly-pdf $$i" ""')