Quote filenames used for forward-search with SumatraPDF

Single quotes are special to our parser and must be either escaped or
quoted if they are part of a filename, otherwise they are stripped out.

Fixes #10342.
This commit is contained in:
Enrico Forestieri 2016-10-27 04:16:04 +02:00
parent f8d3a8860b
commit 3508c7bc8a
2 changed files with 3 additions and 1 deletions

View File

@ -421,7 +421,7 @@ PrefOutput::PrefOutput(GuiPreferences * form)
dviCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"evince -i %{page+1} $$o\""); dviCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"evince -i %{page+1} $$o\"");
pdfCB->addItem(""); pdfCB->addItem("");
pdfCB->addItem("CMCDDE SUMATRA control [ForwardSearch(\\\"$$o\\\",\\\"$$t\\\",$$n,0,0,1)]"); pdfCB->addItem("CMCDDE SUMATRA control [ForwardSearch(\\\"$$o\\\",\\\"$$t\\\",$$n,0,0,1)]");
pdfCB->addItem("SumatraPDF -reuse-instance $$o -forward-search $$t $$n"); pdfCB->addItem("SumatraPDF -reuse-instance \"$$o\" -forward-search \"$$t\" $$n");
pdfCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"xpdf -raise -remote $$t.tmp $$o %{page+1}\""); pdfCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"xpdf -raise -remote $$t.tmp $$o %{page+1}\"");
pdfCB->addItem("okular --unique \"$$o#src:$$n $$f\""); pdfCB->addItem("okular --unique \"$$o#src:$$n $$f\"");
pdfCB->addItem("qpdfview --unique \"$$o#src:$$f:$$n:0\""); pdfCB->addItem("qpdfview --unique \"$$o#src:$$f:$$n:0\"");

View File

@ -69,6 +69,8 @@ What's new
- Make *-lyxformat-* backup files use .lyx~ extension. - Make *-lyxformat-* backup files use .lyx~ extension.
- Quote filenames used for forward-search with SumatraPDF (bug 10342).
* LYX2LYX * LYX2LYX