From 19bca24486315cc35f873486e6a2dd18394d0614 Mon Sep 17 00:00:00 2001 From: Vasily Melenchuk Date: Fri, 30 Jul 2021 17:22:38 +0300 Subject: tdf#126287: docx import: use defered linebreak In some cases when we have combo linebreak, endparagraph and end section at very bottom of page, MS Word does ignores linebreak to avoid empty page with same section and lonely end paragraph mark. With defered linebreak we could simulate and ignore such linebreaks during import. Change-Id: Ie6ee4c0990ee1c2e853691a76953c83191664e43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119709 Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- sw/qa/extras/ooxmlexport/data/tdf126287.docx | Bin 0 -> 8701 bytes sw/qa/extras/ooxmlexport/ooxmlexport17.cxx | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 sw/qa/extras/ooxmlexport/data/tdf126287.docx (limited to 'sw') diff --git a/sw/qa/extras/ooxmlexport/data/tdf126287.docx b/sw/qa/extras/ooxmlexport/data/tdf126287.docx new file mode 100644 index 000000000000..cf2250b9f9a4 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf126287.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx index 7dec733c8717..f3ed7d2127da 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport17.cxx @@ -165,6 +165,11 @@ DECLARE_OOXMLEXPORT_TEST(TestWPGZOrder, "testWPGZOrder.docx") } } +DECLARE_OOXMLEXPORT_TEST(testTdf126287, "tdf126287.docx") +{ + CPPUNIT_ASSERT_EQUAL(2, getPages()); +} + DECLARE_OOXMLEXPORT_TEST(testTdf123642_BookmarkAtDocEnd, "tdf123642.docx") { // get bookmark interface -- cgit