From: Scott Kostyshak Date: Sat, 12 Jan 2013 04:51:02 +0000 (-0500) Subject: LyXRC: allow space in {editor,viewer}_alternatives X-Git-Tag: 2.1.0beta1~940 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=010f64735f86d018db5295293d174b9584a32566;p=features.git LyXRC: allow space in {editor,viewer}_alternatives --- diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 6dba894ef7..24967a3dab 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -2760,7 +2760,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c || sysfmt == sysend // format not found || sysfmt->second.count(cmd) == 0 // this command not found ) - os << "\\viewer_alternatives " << fmt << " " << cmd << "\n"; + os << "\\viewer_alternatives " << fmt << " \"" << cmd << "\"\n"; } } if (tag != RC_LAST) @@ -2785,7 +2785,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c || sysfmt == sysend // format not found || sysfmt->second.count(cmd) == 0 // this command not found ) - os << "\\editor_alternatives " << fmt << " " << cmd << "\n"; + os << "\\editor_alternatives " << fmt << " \"" << cmd << "\"\n"; } } if (tag != RC_LAST)