Apache OpenOffice (AOO) Bugzilla – Issue 104384
WW8: exported doc having many sections in table causes page loop in Word
Last modified: 2017-05-20 10:30:29 UTC
Saving the attached document as Word 97 causes the load in Word 2007 to loop and generate an enormous amount of pages. The actual Writer version I used was 000310m11 build 9399.
Created attachment 64289 [details] The document mentioned in the issue description
I have discovered that the section elements cause the problem. After removing them the document opens in Word 2007.
MRU->HBRINKM: there is a multi-page table cell which itself contains some nested tables and a lot of sections. The document exported correctly in OOo 3.0. Since 3.0.1 there seems to be a problem with the inner tables and the sections. It looks that every section creates a page break. Additionally since OOo 3.1 the outer table cell becomes extremely narrow.
Analysis: The document t.odt has only one table cell which contains page breaks. The page breaks are introduced by paragraph with style "Heading 2". "Heading 2" is set to insert a page break before the paragraph it is applied to. Word does not allow page breaks inside table cells.
Analysis: MSWordExportBase::NoPageBreakSection checks for bIsInTable and only outputs a SectionNode if it not in a table by bIsInTable. Nevertheless section breaks are output inside tables.
Fixed in cws sw34bf06. changeset: 713dcef8f169
@mst: Please review.
fix looks plausible to me.