Created attachment 135337 [details]
Missing nested table
The attachment is sanitized and distilled minimal reproducer of a real user's problem with a document created by a third-party report-generating software.
The file opens in Word with a 1-column 2-row outer table that has a nested table in second row. That nested table has a single cell with two lines of text in it, with line break between lines:
When open in Writer, there's no nested table, and outer table's second row's cell contains text
with line break after it.
The document is ill-formed OOXML, that contains <w:tbl> element as direct child of <w:p>, which is illegal, but accepted by Word. Furthermore, Word makes a funny trick here, moving the content of the outer <w:p> into the first cell of inner table.
The goal is to try to be bug-to-bug compatible with Word here.
A patch is in gerrit: https://gerrit.libreoffice.org/40909
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":
tdf#111550: A workaround for out-of-order (in-paragraph) tbl on OOXML
It will be available in 6.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.