From 010f64735f86d018db5295293d174b9584a32566 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Fri, 11 Jan 2013 23:51:02 -0500 Subject: [PATCH] LyXRC: allow space in {editor,viewer}_alternatives --- src/LyXRC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2