mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 21:45:23 +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) {
|
if (command == cmd) {
|
||||||
docstring value;
|
docstring value;
|
||||||
value += unicodeSymbol.first;
|
value += unicodeSymbol.first;
|
||||||
|
needsTermination = !unicodeSymbol.second.mathNoTermination();
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -398,6 +399,7 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype,
|
|||||||
if (command == cmd) {
|
if (command == cmd) {
|
||||||
docstring value;
|
docstring value;
|
||||||
value += unicodeSymbol.first;
|
value += unicodeSymbol.first;
|
||||||
|
needsTermination = !unicodeSymbol.second.textNoTermination();
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user