On 15/11/2009 22:39, Abdelrazak Younes wrote:
Hello Richard,
I don't know if you are interested in bug report but here are some
anyway:
XML Parsing Error: not well-formed
Location: file:///C:/devel/lyx/lyx-devel/lib/doc/Math.xhtml
Line Number 673, Column 52:
<mrow><mi>exp</mi>⁡<mrow/><mo><</mo><mo><</mo><mrow/><mfenced
open="[" close="]">
---------------------------------------------------^
XML Parsing Error: not well-formed
Location: file:///C:/devel/lyx/lyx-devel/lib/doc/Math.xhtml
Line Number 1326, Column 43: <mrow><mi> 0
</mi><mo><</mo><mo><</mo><mi>k</mi><mo><</mo><mo><</mo><mi> 1000
</mi>
------------------------------------------^
This is with Firefox 3.5.5 under Windows. I had a look at the code
(grepping for 'mo') but I can't see how obtaining <mo><</mo> is
possible... I guess the problem is in InsetMathChar::mathmlize()...
OK, I found it... Impressive work Richard, it's starting to look like
something :-)
Abdel.
Author: younes
Date: Sun Nov 15 22:45:21 2009
New Revision: 32033
URL:http://www.lyx.org/trac/changeset/32033
Log:
Fix MathML export for< and> special characters.
Modified:
lyx-devel/trunk/src/mathed/InsetMathChar.cpp
Modified: lyx-devel/trunk/src/mathed/InsetMathChar.cpp
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathChar.cpp Sun Nov 15 22:36:38
2009 (r32032)
+++ lyx-devel/trunk/src/mathed/InsetMathChar.cpp Sun Nov 15 22:45:21
2009 (r32033)
@@ -168,9 +168,9 @@
void InsetMathChar::mathmlize(MathStream& ms) const
{
switch (char_) {
- case '<': ms<< "<mo><</mo>"; break;
- case '>': ms<< "<mo>></mo>"; break;
- case '&': ms<< "<mo>&</mo>"; break;
+ case '<': ms<< "<mo><</mo>"; return;
+ case '>': ms<< "<mo>></mo>"; return;
+ case '&': ms<< "<mo>&</mo>"; return;
default: break;
}