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 uncodable;
for (char_type c : name_in) {
if (!os.encoding())
break;
if (!os.encoding()) {
name_recoded += c;
continue;
}
if (os.encoding()->encodable(c))
name_recoded += c;
else {