Bug 136606 - XHTML export drops text after 'as character' anchored <draw:frame> element (e.g. image, math formula)
Summary: XHTML export drops text after 'as character' anchored <draw:frame> element (e...
Status: RESOLVED DUPLICATE of bug 118637
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2020-09-09 12:08 UTC by Regina Henschel
Modified: 2021-05-19 14:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Testdocument to reproduce the error (10.15 KB, application/vnd.oasis.opendocument.text)
2020-09-09 12:08 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2020-09-09 12:08:45 UTC
Created attachment 165317 [details]
Testdocument to reproduce the error

The XHTMl drops text after a <draw:frame> element, if the <draw:frame> element is anchored 'as character'.
<draw:frame> elements are not only text boxes, but images and math objects as well.

Open attached file and export it to XHTML. Open the generated file in a browser and compare it with the original file in Writer.
Comment 1 Michael Stahl (allotropia) 2020-09-11 10:46:23 UTC
probably need to cherry-pick XSLT fixes from:

https://github.com/oasis-tcs/odf-tc/pull/29
Comment 2 Michael Stahl (allotropia) 2021-03-23 19:27:53 UTC
is this a fix or a workaround?

commit c66994690853445e37c6f66ebd25d130d3430293
Author:     Svante Schubert <svante.schubert@gmail.com>
AuthorDate: Fri Oct 9 14:08:31 2020 +0200
Commit:     Michael Stahl <michael.stahl@allotropia.de>
CommitDate: Tue Mar 2 13:25:01 2021 +0100

    HTML XSLT: Adding explicitly whitespace - prior been erased in patch - as it is often missing in our LO version used to create the MathML
    
    Change-Id: I90468c89297b5f3d70e7ba61cde5481069fc600b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111622
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Comment 3 Stéphane Guillou (stragu) 2021-05-19 13:49:39 UTC
This is a "WorksForMe" in version 7.2 alpha1+ (but not in 7.1.3).

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: b1c0734ffe0f395757b6e0cea7830d820231afeb
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-18_03:16:20
Calc: threaded
Comment 4 Xisco Faulí 2021-05-19 14:04:57 UTC
This issue got fixed by

author	Svante Schubert <svante.schubert@gmail.com>	2020-09-09 15:27:54 +0200
committer	Michael Stahl <michael.stahl@allotropia.de>	2021-03-02 13:24:15 +0100
commit f680b6d74209fd78c547201b2f14c6547e55c81b (patch)
tree 1392dbf48686a0a50ac8c0aef4ddf5b76965d72b
parent 86ca384cab26f2731e099c821edfa9636f8b55d5 (diff)
HTML XSLT: Adding missing MathML siblings. The floating draw:frame sibling content being text were not shown, nor further occuring draw:frame (other MathML)

and

author	Svante Schubert <svante.schubert@gmail.com>	2020-09-10 16:17:37 +0200
committer	Michael Stahl <michael.stahl@allotropia.de>	2021-03-02 13:24:37 +0100
commit 06eb655e2c83df8eeeb0c0828f8ac34f13e386af (patch)
tree 92df2949329ef6a1c3a3b68795f81946041d1bc5
parent f680b6d74209fd78c547201b2f14c6547e55c81b (diff)
HTML MathML update - enabling inline MATHML & fixing duplication (regression from last commit)

Closing as dupe of bug 118637

*** This bug has been marked as a duplicate of bug 118637 ***