mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
\foreignlanguage does not play with \cprotect.
This commit is contained in:
parent
c9bf179016
commit
8bc76ad9bb
@ -310,10 +310,6 @@ int Font::latexWriteStartChanges(otexstream & os, BufferParams const & bparams,
|
||||
string const tmp =
|
||||
subst(lyxrc.language_command_local,
|
||||
"$$lang", language()->babel());
|
||||
if (needs_cprotection && !prefixIs(tmp, "\\begin{")) {
|
||||
os << "\\cprotect";
|
||||
count += 9;
|
||||
}
|
||||
os << from_ascii(tmp);
|
||||
count += tmp.length();
|
||||
if (!lyxrc.language_command_end.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user