Allow double quotes in file names passed to converters.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32583 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-12-18 22:15:46 +00:00
parent 21686c0bbf
commit 5ad8d44ce2

View File

@ -142,7 +142,9 @@ string const quoteName(string const & name, quote_style style)
'\'' + name + '\'':
'"' + name + '"';
#else
return '"' + name + '"';
// According to the QProcess parser, a single double
// quote is represented by three consecutive ones.
return '"' + subst(name, "\"", "\"\"\"") + '"';
#endif
case quote_python:
return "\"" + subst(subst(name, "\\", "\\\\"), "\"", "\\\"")