From: Juergen Spitzmueller Date: Mon, 5 Dec 2022 07:20:25 +0000 (+0100) Subject: Amend 14b108fc222ef9e X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c715db4ae852e84ebc5f80d20127d12c2ee867ce;p=features.git Amend 14b108fc222ef9e --- diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp index 70e67a6588..6a23abf4a1 100644 --- a/src/mathed/InsetMathMacro.cpp +++ b/src/mathed/InsetMathMacro.cpp @@ -1153,8 +1153,10 @@ void InsetMathMacro::write(TeXMathStream & os) const docstring name_recoded; docstring uncodable; for (char_type c : name_in) { - if (!os.encoding()) - break; + if (!os.encoding()) { + name_recoded += c; + continue; + } if (os.encoding()->encodable(c) || os.output() == TeXMathStream::wsSearchAdv) name_recoded += c; else {