Do not write \default_view_format if it is empty.

This commit is contained in:
Richard Kimberly Heck 2021-02-15 10:55:20 -05:00
parent 80f855581c
commit 93e7ab1f3e

View File

@ -2729,8 +2729,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
break;
// fall through
case RC_DEFAULT_VIEW_FORMAT:
if (ignore_system_lyxrc ||
default_view_format != system_lyxrc.default_view_format) {
if ((ignore_system_lyxrc ||
default_view_format != system_lyxrc.default_view_format)
&& !default_view_format.empty()) {
os << "\\default_view_format " << default_view_format << '\n';
}
if (tag != RC_LAST)