[Libreoffice-commits] core.git: sw/source
Justin Luth
justin_luth at sil.org
Sat Jul 1 11:08:48 UTC 2017
sw/source/filter/ww8/wrtww8.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8e974d24f3bbc59c66476db1a56e6a2013a528e0
Author: Justin Luth <justin_luth at sil.org>
Date: Tue Jun 13 13:48:44 2017 +0300
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 <ci at libreoffice.org>
Reviewed-by: Justin Luth <justin_luth at sil.org>
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
More information about the Libreoffice-commits
mailing list