From 8e974d24f3bbc59c66476db1a56e6a2013a528e0 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Tue, 13 Jun 2017 13:48:44 +0300 Subject: tdf#108448 ww8export: skip sectionbreak for endnotes MSWord ignores page-breaks in endnotes, and just adds endnotes at the end of the last page. LO automatically page-breaks with pageStyle Endnotes. It must be built into the code that handles endnotes. Don't try to export that page-break - it doesn't work anyway. Change-Id: I2f266b20a6fa97d0522878f71fe0a6822833d89c Reviewed-on: https://gerrit.libreoffice.org/38727 Tested-by: Jenkins Reviewed-by: Justin Luth --- sw/source/filter/ww8/wrtww8.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index b1a49391b848..987a060820cc 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -2649,7 +2649,8 @@ void MSWordExportBase::WriteText() { SwNode& rNd = m_pCurPam->GetNode(); - if ( rNd.IsTextNode() ) + // no section breaks exported for Endnotes + if ( rNd.IsTextNode() && m_nTextTyp != TXT_EDN ) SectionBreaksAndFrames( *rNd.GetTextNode() ); // output the various types of nodes -- cgit v1.2.3