Bug 156602 - HTML export of a table nested in another table may make outer table content out-of-table, when both tables are very first elements in the document
Summary: HTML export of a table nested in another table may make outer table content o...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:24.2.0 target:7.6.1
Keywords: filter:html
Depends on:
Blocks:
 
Reported: 2023-08-04 04:15 UTC by Mike Kaganski
Modified: 2023-08-08 08:17 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Table nesting in the beginning of document (1.73 KB, application/vnd.oasis.opendocument.text)
2023-08-04 04:15 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2023-08-04 04:15:32 UTC
Created attachment 188759 [details]
Table nesting in the beginning of document

1. Create a new Writer document; insert a table with more than one cell in the very beginning of it;
2. Insert a nested table into the first table's A1. Put some text into all the cells in both tables;
3. Save as HTML;
4. Reload the HTML.

=> the outer table is lost, and its content is simply put after the inner table, as ordinary paragraphs.

The attachment is a simple FODT document that may be used as the reproducer.
Comment 1 Mike Kaganski 2023-08-04 04:50:11 UTC
https://gerrit.libreoffice.org/c/core/+/155332
Comment 2 Commit Notification 2023-08-04 09:00:06 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/094fc93dfb5f9f6d441e63a8515c09d6165add00

tdf#156602: fix handling of nesting of tables in the document beginning

It will be available in 24.2.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.
Comment 3 Commit Notification 2023-08-08 08:17:37 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/9b0ac7bf8d9cb4f0a52279e7177606795475150b

tdf#156602: fix handling of nesting of tables in the document beginning

It will be available in 7.6.1.

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.