[LyX/2.4.x] Cleanup MathMLStream
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Mon Jul 22 22:18:08 UTC 2024
Le 22/07/2024 à 22:40, Enrico Forestieri a écrit :
>> diff --git a/src/mathed/InsetMathChar.cpp b/src/mathed/InsetMathChar.cpp
>> index 199982a5f7..82d0b63f1e 100644
>> --- a/src/mathed/InsetMathChar.cpp
>> +++ b/src/mathed/InsetMathChar.cpp
>> @@ -248,7 +248,7 @@ void InsetMathChar::mathmlize(MathMLStream & ms)
>> const
>>
>> if (ms.inText()) {
>> if (entity.empty())
>> - ms.os().put(char_);
>> + ms << char_;
>> else
>> ms << from_ascii(entity);
>> return;
Note that this operator is like
MathMLStream & operator<<(MathMLStream & ms, char_type c)
{
- ms.os().put(c);
+ ms << docstring(1,c);
return ms;
}
Is it wrong? Is it better to use put() like it was?
JMarc
More information about the lyx-devel
mailing list