Encodings::fromLaTeXCommand: properly set needsTermination on early exit

This commit is contained in:
Juergen Spitzmueller 2022-03-02 08:11:34 +01:00
parent afd6e1d45e
commit 39c0b322f7

View File

@ -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;
}
}