From 39c0b322f7b140ca9a9c1544adf05f296a5ea28f Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 2 Mar 2022 08:11:34 +0100 Subject: [PATCH] Encodings::fromLaTeXCommand: properly set needsTermination on early exit --- src/Encoding.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Encoding.cpp b/src/Encoding.cpp index 0c8d085a19..a4c706bd3b 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -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; } } -- 2.39.5