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

Frédéric Wang <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |

--- Comment #2 from Frédéric Wang <[email protected]> ---
I've submitted a patch for review:
https://gerrit.libreoffice.org/#/c/4607/

For some reason, the XHTML export created a new <math> node and copied the
children of math/semantics, skipping the annotation. I've modified that to
export the whole math element (in particular the display attribute) but I kept
that its semantics child and annotation elements are skipped. Actually, I only
export the fist child of semantics, so that will be essentially the same since
the semantics created by Math contains only one StarMath annotation element.

How to test the changes:

1) In Math
  1a) create a new formula "sum from {i=1} to n i = {n(n+1)} over 2" ; in the
menu, uncheck the option "Format => Text mode" and save it in mml format.
  1b) create a new formula "sum from {i=1} to n i = {n(n+1)} over 2" ; in the
menu, check the option "Format => Text mode" and save it in mml format.
  1c) The first file should have display="block" attached to the math element
but the second should not.

2) In Writer
  2a) Create a new document and do Insert => object => formula and type a
formula as in 1a)
  2b) In the same document, do Insert => object => formula and type a formula
as in 1b)
  2c) Do file => export => XHTML
  2d) The exported XHTML file should have one formula with display="block" and
one without that attribute. You can open the page in Firefox to see the
rendering differences (that you should have seen in LibreOffice too).

Note: for some reason in 2), I get <img> of formulas exported, but that seems a
separate 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