diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-11-19 22:41:52 +0300 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-11-20 23:46:58 +0100 |
commit | 8e3fa597679a6402bd6d74e2ec25631ae686c423 (patch) | |
tree | fa694fe4f8bad14d0df6c0df15b462e939f21a71 /sw/source/filter/ww8/rtfattributeoutput.hxx | |
parent | 65508049523ac7a257688fffcbc1ad3711986421 (diff) |
tdf#128889: don't write "page break after" into w:pPr
This produced invalid OOXML, which Word considers as "page before",
and LibreOffice ignores when re-importing.
Make sure to write it as *trailing* w:r with w:br, as Word also does
when imports ODT with this atribute, and saves as DOCX.
Change-Id: Ifc4f45d65d4455ecb5cd62aed1ef6a03375c8aa4
Reviewed-on: https://gerrit.libreoffice.org/83232
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit b0e7e494b6bc69d3833c0a6c256ff8106a4a24cb)
Reviewed-on: https://gerrit.libreoffice.org/83334
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/source/filter/ww8/rtfattributeoutput.hxx')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx index fe0d093ae0a3..4ea8b3845bcd 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.hxx +++ b/sw/source/filter/ww8/rtfattributeoutput.hxx @@ -165,7 +165,8 @@ public: /// Write a section break /// msword::ColumnBreak or msword::PageBreak - void SectionBreak(sal_uInt8 nC, const WW8_SepInfo* pSectionInfo = nullptr) override; + void SectionBreak(sal_uInt8 nC, bool bBreakAfter, + const WW8_SepInfo* pSectionInfo = nullptr) override; /// Start of the section properties. void StartSection() override; |