LyXRC: allow space in {editor,viewer}_alternatives

This commit is contained in:
Scott Kostyshak 2013-01-11 23:51:02 -05:00
parent 47e9848783
commit 010f64735f

View 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)