mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Encodings::fromLaTeXCommand: properly set needsTermination on early exit
This commit is contained in:
parent
afd6e1d45e
commit
39c0b322f7
@ -389,6 +389,7 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype,
|
||||
if (command == cmd) {
|
||||
docstring value;
|
||||
value += unicodeSymbol.first;
|
||||
needsTermination = !unicodeSymbol.second.mathNoTermination();
|
||||
return value;
|
||||
}
|
||||
}
|
||||
@ -398,6 +399,7 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype,
|
||||
if (command == cmd) {
|
||||
docstring value;
|
||||
value += unicodeSymbol.first;
|
||||
needsTermination = !unicodeSymbol.second.textNoTermination();
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user