[LyX/master] Amend 4fd6edf3

Thibaut Cuvelier tcuvelier at lyx.org
Thu Sep 23 21:19:37 UTC 2021


commit db3efe45490a2cf4f90af075bd6da232c6ebea1e
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Thu Sep 23 23:40:21 2021 +0200

    Amend 4fd6edf3
    
    Escape paths in the generated RC file.
---
 lib/configure.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/configure.py b/lib/configure.py
index b204012..d13b314 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -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" ""')


More information about the lyx-cvs mailing list