mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
parent
0e0d21f905
commit
ac58a5060e
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user