Created attachment 190641 [details] Example file from Word 2016 Attached document contains a paragraph with a field and a simple page break before it. This page break is missing when opened in Writer and the number of pages is one less than needed. 1. Open attached document -> only 2 pages instead of 3, the first page contains the paragraph that has a mail merge field. Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: a09b59cdbde2ab92bbbb6737337b74a7a62b17f1 CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: en-US (hu_HU); UI: en-US Calc: threaded Seems to have started in 4.3 with https://cgit.freedesktop.org/libreoffice/core/commit/?id=e3f254ab8211fbab7541cde2100a35c875b0c240 author Michael Stahl <mstahl@redhat.com> 2014-02-27 23:48:59 +0100 committer Michael Stahl <mstahl@redhat.com> 2014-03-03 13:53:21 +0100 commit e3f254ab8211fbab7541cde2100a35c875b0c240 (patch) RTF import: fix spurious page breaks at doc end (related: rhbz#1065629)
Created attachment 190643 [details] Screenshot of the document in Word 2016 and Writer master
Created attachment 190644 [details] The document modified by removing the field
Created attachment 190645 [details] The modified document in Word and Writer
*** This bug has been marked as a duplicate of bug 157979 ***
(In reply to tri from comment #4) > > *** This bug has been marked as a duplicate of bug 157979 *** Why would that be so? This is a bibisected RTF-specific bug. That does not seem like something remotely related to RTF.
This seems to be fixed in 24.2 since: https://git.libreoffice.org/core/+/14d1ec9a26248f2023a697fc4458ec6422a2ae71 author Michael Stahl <michael.stahl@allotropia.de> Fri Feb 09 17:51:03 2024 +0100 committer Xisco Fauli <xiscofauli@libreoffice.org> Mon Feb 12 14:07:29 2024 +0100 tdf#158983 writerfilter: RTF import: fix page breaks and shape anchors *** This bug has been marked as a duplicate of bug 158983 ***