Created attachment 186888 [details] test ODG Contents of text boxes are multiplied in XHTML export. Steps to reproduce: 1. Open attachment 2. File > Export... > XHTML Can also be done with command: soffice --headless --convert-to "html:XHTML Draw File:UTF8" testfile.odg Result: resulting HTML file has several copies of the contents of each text box. Bibisected with linux-64-7.1 repo to first bad commit 312432afdcb4032232a4fa5729851b4f3d473125 which points to core commit 932be9b55ce8b996184e724127925c436130cecd which is a cherry-pick of: commit f680b6d74209fd78c547201b2f14c6547e55c81b author Svante Schubert <svante.schubert@gmail.com> Wed Sep 09 15:27:54 2020 +0200 committer Michael Stahl <michael.stahl@allotropia.de> Tue Mar 02 13:24:15 2021 +0100 HTML XSLT: Adding missing MathML siblings. The floating draw:frame sibling content being text were not shown, nor further occuring draw:frame (other MathML) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111620 Svante and Michael, can you please have a look?
Created attachment 186889 [details] resulting HTML
I can reproduce this issue and will try to take a closer look on it (but with a low priority in my work queue)..
Created attachment 186944 [details] New reuslt, after adjusting filter for this test case Initial feedback, as I found the erroneous recursion used for emulating floating images (and their floating siblings). I will need to create a test case for this floating to make sure that this previous functionality can co-exist with this test case.
I have done several enhancements in the OASIS ODF TC Github, where we synch the XSLT filter with the LO version to create the HTML version of the ODF specification. All current changes can be found at: https://github.com/oasis-tcs/odf-tc/commit/2a76ccd24030e16ad284349ca75187e1a96f38e0 This will obviously break the floating functionality but it is a good start as the document looks very similar to the input now, colors, position, etc. added! :-) Thanks to Thorsten Behrens who organized a hackfest in Hamburg and invited me and Michael Stahl, who brought this issue up and will - hopefully ;-) - assist in merging the existing updates in the ODF-TC repo and with automated regression tests. This motivated me to fix this issue right away - even if there was no real priority..
Excellent, thank you for working on it and looking forward to seeing the improvements merged :)
With Michaels help - he merged the earlier LO XSLT including fixes (see https://github.com/oasis-tcs/odf-tc/pull/46) - I finished my part of work on https://github.com/oasis-tcs/odf-tc/pull/47 Michael is now taking the work back to LO repo and is updating the regression tests to the fixes we made (to avoid failing tests due our fixes (false positives )) ;-) \o/
Svante Schubert committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e857b12dada1468cb3bdb49ed5ea636df0b6d153 tdf#154989 filter: XHTML export: avoid duplicated frames It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Svante Schubert committed a patch related to this issue. It has been pushed to "libreoffice-7-5": https://git.libreoffice.org/core/commit/cb27c6c1b82272e8812bcb446e7179cc4f32bf34 tdf#154989 filter: XHTML export: avoid duplicated frames It will be available in 7.5.4. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Thank you both, fabulous improvements in similarity to original, and structure of the source, in: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 88bd66d258de5fee3d35aba80c61fec49eb2a969 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded
Created attachment 187199 [details] comparison: ODG in LO; export to XHTML by 7.5.3; export to XHTML by 7.6 alpha0+ Comparison of exports with example ODG. Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 88bd66d258de5fee3d35aba80c61fec49eb2a969 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded