Bug 156566 - XHTML-Export: Content of Document will be duplicated with Image on first page anchored to Page
Summary: XHTML-Export: Content of Document will be duplicated with Image on first page...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.6.0.1 rc
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-01 15:04 UTC by Robert Großkopf
Modified: 2023-08-02 05:59 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Testdocument: Export to XHTML. Scroll down in exported document to see duplicated content. (124.56 KB, application/vnd.oasis.opendocument.text)
2023-08-01 15:04 UTC, Robert Großkopf
Details
Exported XHTML (162.26 KB, application/xhtml+xml)
2023-08-02 00:44 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2023-08-01 15:04:00 UTC
Created attachment 188698 [details]
Testdocument: Export to XHTML. Scroll down in exported document to see duplicated content.

Open the attached document.
Export by File → Export → XHTML.
Have a look at the exported document.
Scroll down the document.
Header "Base Handbuch" will appear twice, also the whole content of the document. Only the image on the first page (position wrong …) will appear only one time.

Now set image anchor to paragraph: Properties → Image → Position an Size → Anchor → To Paragraph
and set the position to center in top of the text area.

Export the file again and the content will appear only once.

There are many more bugs in this document. But a duplicate of the whole content is main bug for me.

Tested with LO 7.4.7.2, appears also on LO 7.1.5.2 (which is the last usable version, because all versions since LO 7.2 ignore decimal places, write '0' instead of '0,64' and so it couldn't be set back to '0.64' - same with '1,27')

Tested with OpenSUSE 15.4 64bit rpm Linux.
Comment 1 m_a_riosv 2023-08-02 00:44:12 UTC
Created attachment 188711 [details]
Exported XHTML

Exported with
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2a9e83a673300dfe15a3acc66acd560b2a7cae43
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded

The image is not centered, but I can't see duplicates of the text.
Comment 2 Robert Großkopf 2023-08-02 05:59:58 UTC
(In reply to m.a.riosv from comment #1)
> 
> The image is not centered, but I can't see duplicates of the text.

You are right. Exported first with LO 7.4.7.2 and got the duplicates. Then exported with LO 7.1.5.2, because it is the last version, which sets right distances to the left for tabulator. Both the same buggy behavior with duplicates.

With LO 7.5.5.2 I couldn't find a duplicate, but other formatting bugs…

This solution will be good enough for my webpage.