mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 11:32:21 +00:00
LyXRC: escape existing quote characters in 'cmd'
(cherry picked from commit a4a836916b
)
This commit is contained in:
parent
72b86d895c
commit
a27900e3ff
@ -2785,7 +2785,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
|||||||
|| sysfmt == sysend // format not found
|
|| sysfmt == sysend // format not found
|
||||||
|| sysfmt->second.count(cmd) == 0 // this command not found
|
|| sysfmt->second.count(cmd) == 0 // this command not found
|
||||||
)
|
)
|
||||||
os << "\\viewer_alternatives " << fmt << " \"" << cmd << "\"\n";
|
os << "\\viewer_alternatives " << fmt << " \"" << escapeCommand(cmd) << "\"\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (tag != RC_LAST)
|
if (tag != RC_LAST)
|
||||||
@ -2810,7 +2810,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
|||||||
|| sysfmt == sysend // format not found
|
|| sysfmt == sysend // format not found
|
||||||
|| sysfmt->second.count(cmd) == 0 // this command not found
|
|| sysfmt->second.count(cmd) == 0 // this command not found
|
||||||
)
|
)
|
||||||
os << "\\editor_alternatives " << fmt << " \"" << cmd << "\"\n";
|
os << "\\editor_alternatives " << fmt << " \"" << escapeCommand(cmd) << "\"\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (tag != RC_LAST)
|
if (tag != RC_LAST)
|
||||||
|
Loading…
Reference in New Issue
Block a user