From: Thibaut Cuvelier Date: Sat, 28 Sep 2024 14:47:58 +0000 (+0200) Subject: Use proper minus sign character in MathML Core. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=790c15373782510d912ab3bd2c24393cda7fe85d;p=lyx.git 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. --- diff --git a/src/mathed/InsetMathChar.cpp b/src/mathed/InsetMathChar.cpp index ebc1644af5..7e57bf28e5 100644 --- a/src/mathed/InsetMathChar.cpp +++ b/src/mathed/InsetMathChar.cpp @@ -239,6 +239,12 @@ void InsetMathChar::mathmlize(MathMLStream & ms) const case '<': entity = "<"; break; case '>': entity = ">"; break; case '&': entity = "&"; break; + case '-': + if (ms.version() == MathMLStream::mathmlCore) { + // − U+2212 MINUS SIGN + entity = "−"; + } + break; case ' ': { ms << from_ascii(" "); return;