This commit is contained in:
Juergen Spitzmueller 2022-12-05 08:23:50 +01:00
parent f5ad874781
commit 263e1045e2

View File

@ -1081,8 +1081,10 @@ void InsetMathMacro::write(WriteStream & os) const
docstring name_recoded; docstring name_recoded;
docstring uncodable; docstring uncodable;
for (char_type c : name_in) { for (char_type c : name_in) {
if (!os.encoding()) if (!os.encoding()) {
break; name_recoded += c;
continue;
}
if (os.encoding()->encodable(c)) if (os.encoding()->encodable(c))
name_recoded += c; name_recoded += c;
else { else {