]> git.lyx.org Git - lyx.git/commitdiff
LyXRC: allow space in {editor,viewer}_alternatives
authorScott Kostyshak <skostysh@lyx.org>
Sat, 12 Jan 2013 04:51:02 +0000 (23:51 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 12 Jan 2013 06:13:58 +0000 (01:13 -0500)
src/LyXRC.cpp

index 6dba894ef7107cb885aad4077adfbeee1dc84306..24967a3dab7a79e5a2d0ebcefe675a1f8536ece1 100644 (file)
@@ -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)