Helge Hafting <[EMAIL PROTECTED]> writes: > Bo Peng wrote: >>> Fixed as well. See patch attached in Bugzilla. >> >> http://bugzilla.lyx.org/show_bug.cgi?id=5349 is easy to fix as long as >> someone knows how to quote a string with " properly. > > Easy enough. The common way in unix is to use the > backslash as an escape character. > So you use \" in order to treat the " sign as any > other letter.
We have escapeCommand in LyXRC.cpp, which could be turned into a quoteString inLexRC (which would add the "" around the string). Then it is amusing the see how many quoteFoo commands we have in the code, all doing slightly different things: pegase: grep -r 'string.*escape' src|grep cpp src/mathed/MathParser.cpp:docstring escapeSpecialChars(docstring const & str, bool textmode) src/frontends/qt4/GuiCitation.cpp:static docstring escape_special_chars(docstring const & expr) src/frontends/tests/biblio.cpp:string const escape_special_chars(string const & expr) src/support/lstrings.cpp:docstring const escape(docstring const & lab) src/sgml.cpp:docstring sgml::escapeChar(char_type c) src/sgml.cpp:docstring sgml::escapeString(docstring const & raw) src/LyXRC.cpp: string escapeCommand(string const & str) { Of these, only the last one is relevant to us. However, some renaming would be useful. JMarc