From c715db4ae852e84ebc5f80d20127d12c2ee867ce Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 5 Dec 2022 08:20:25 +0100 Subject: [PATCH] Amend 14b108fc222ef9e --- src/mathed/InsetMathMacro.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 { -- 2.39.5