More general fix is upcoming.
This commit is contained in:
Juergen Spitzmueller 2022-12-02 11:21:15 +01:00
parent 0e0d21f905
commit ac58a5060e

View File

@ -709,20 +709,7 @@ static docstring latexString(InsetMathHull const & inset)
otexrowstream ots(ls);
TeXMathStream wi(ots, false, true, TeXMathStream::wsPreview, encoding);
inset.write(wi);
docstring const s = ls.str();
docstring res;
for (char_type c : s) {
if (encoding->encodable(c))
res += c;
else {
// indicate the encoding error by a boxed '?'
res += "{\\fboxsep=1pt\\fbox{?}}";
LYXERR0("Uncodable character" << " '"
<< c
<< "'");
}
}
return res;
return ls.str();
}