[Libreoffice-bugs] [Bug 126287] Writer: DOCX export from ODT: Header/Footer is missing on second page

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Mar 19 09:57:39 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=126287

--- Comment #3 from Serge Krot (CIB) <serge.krot at cib.de> ---
Here is a set of the same test cases (style, page setup, etc) with only one
difference at the end of the FODT XML file (which was modified directly in
XML-text editor). In spite of the structure of the documents is the same (it
always finished on first page with P1 style and second page starts with P1
style) the second page could have header (correct) or not (wrong).

See attached extended_test_cases.zip

case_1_big.fodt
- document ends with:
     <text:p text:style-name="Weisse_5f_Schrift"/>
     <text:p text:style-name="Weisse_5f_Schrift"/>
    </text:section>
   </text:section>
   <text:p text:style-name="P1">Lorem ipsum dolor sit amet ....</text:p>
  </office:text>
- header on second page = yes (CORRECT)

case_2_several_small.fodt
- document ends with:
     <text:p text:style-name="Weisse_5f_Schrift"/>
     <text:p text:style-name="Weisse_5f_Schrift"/>
    </text:section>
   </text:section>
   <text:p text:style-name="P1">Lorem</text:p>
   <text:p text:style-name="P1">Lorem</text:p>
   <text:p text:style-name="P1">Lorem</text:p>
   ...
   <text:p text:style-name="P1">Lorem</text:p>
  </office:text>
- header on second page = yes (CORRECT)

case_3_big_plus_empty.fodt
- the same as case_1_big.fodt but with one additional empty P1 paragraph at the
end.
- document ends with:
     <text:p text:style-name="Weisse_5f_Schrift"/>
     <text:p text:style-name="Weisse_5f_Schrift"/>
    </text:section>
   </text:section>
   <text:p text:style-name="P1">Lorem ipsum dolor sit amet ....</text:p>
   <text:p text:style-name="P1"/>
  </office:text>
- header on second page = no (WRONG)

case_3b_big_plus_empty.fodt
- The same as case_3_big_plus_empty.fodt but with text in last paragraph in
prev section
- document ends with:
     <text:p text:style-name="Weisse_5f_Schrift"/>
     <text:p text:style-name="Weisse_5f_Schrift">Weisse_5f_Schrift</text:p>
    </text:section>
   </text:section>
   <text:p text:style-name="P1">Lorem ipsum dolor sit amet ....</text:p>
   <text:p text:style-name="P1"/>
  </office:text>
- header on second page = yes (CORRECT)

case_4_big_plus_small.fodt
- the same as case_1_big.fodt but with one additional non empty P1 paragraph at
the end.
- document ends with:
     <text:p text:style-name="Weisse_5f_Schrift"/>
     <text:p text:style-name="Weisse_5f_Schrift"/>
    </text:section>
   </text:section>
   <text:p text:style-name="P1">Lorem ipsum dolor sit amet ....</text:p>
   <text:p text:style-name="P1">Lorem</text:p>
  </office:text>
- header on second page = no (WRONG)

case_4b_big_plus_small.fodt
- The same as case_4_big_plus_small.fodt but with text in last paragraph in
prev section
- document ends with:
     <text:p text:style-name="Weisse_5f_Schrift"/>
     <text:p text:style-name="Weisse_5f_Schrift">Weisse_5f_Schrift</text:p>
    </text:section>
   </text:section>
   <text:p text:style-name="P1">Lorem ipsum dolor sit amet ....</text:p>
   <text:p text:style-name="P1">Lorem</text:p>
  </office:text>
- header on second page = yes (CORRECT)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200319/8ad25435/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list