https://bugs.freedesktop.org/show_bug.cgi?id=66575

          Priority: medium
            Bug ID: 66575
          Assignee: [email protected]
           Summary: Incorrect removal of last line in
                    SmXMLExport::ExportTable
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: 4.2.0.0.alpha0+ Master
         Component: Formula Editor
           Product: LibreOffice

SmXMLExport::ExportTable contains some code to remove the last line:

    //If the list ends in newline then the last entry has
    //no subnodes, the newline is superfulous so we just drop
    //the last node, inclusion would create a bad MathML
    //table
    if (nSize >= 1 && pNode->GetSubNode(nSize-1)->GetNumSubNodes() == 0)
        --nSize;

This seems to be to avoid adding a row when doing e.g

"a newline
 b newline"

but that does not seem to work in 4.0 and master... Worse, it breaks things
like

"binom a b"

In 4.0, you can do "binom {a} {b}" to avoid that, but after bug 66081 the two
markup are equivalent.

Similarly, MathML export of

"stack{x ## y}"

is now broken in master (before bug 66081, the { } added to each cell was
hiding that bug).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to