From 3508c7bc8ac74e18c3428698287de7f6404bd60e Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 27 Oct 2016 04:16:04 +0200 Subject: [PATCH] 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. --- src/frontends/qt4/GuiPrefs.cpp | 2 +- status.22x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 1c9a1bc34b..d9c4207c35 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -421,7 +421,7 @@ PrefOutput::PrefOutput(GuiPreferences * form) dviCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"evince -i %{page+1} $$o\""); pdfCB->addItem(""); 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("okular --unique \"$$o#src:$$n $$f\""); pdfCB->addItem("qpdfview --unique \"$$o#src:$$f:$$n:0\""); diff --git a/status.22x b/status.22x index 294480a036..7ec6a4e0de 100644 --- a/status.22x +++ b/status.22x @@ -69,6 +69,8 @@ What's new - Make *-lyxformat-* backup files use .lyx~ extension. +- Quote filenames used for forward-search with SumatraPDF (bug 10342). + * LYX2LYX -- 2.39.5