Use proper minus sign character in MathML Core.

Fixes bug https://www.lyx.org/trac/ticket/13067.

Based on the patch in the ticket above by Jean-Marc Lasgouttes.
This commit is contained in:
Thibaut Cuvelier 2024-09-28 16:47:58 +02:00
parent ca5d5a0b1a
commit 790c153737

View File

@ -239,6 +239,12 @@ void InsetMathChar::mathmlize(MathMLStream & ms) const
case '<': entity = "&lt;"; break;
case '>': entity = "&gt;"; break;
case '&': entity = "&amp;"; break;
case '-':
if (ms.version() == MathMLStream::mathmlCore) {
// U+2212 MINUS SIGN
entity = "&#x2212;";
}
break;
case ' ': {
ms << from_ascii("&#0160;");
return;