Bug 158057 - FILEOPEN RTF Page break missing before paragraph with field
Summary: FILEOPEN RTF Page break missing before paragraph with field
Status: RESOLVED DUPLICATE of bug 158983
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: RTF-Opening
  Show dependency treegraph
 
Reported: 2023-11-03 21:04 UTC by Gabor Kelemen (allotropia)
Modified: 2024-05-09 15:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (41.62 KB, application/msword)
2023-11-03 21:04 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the document in Word 2016 and Writer master (178.34 KB, image/png)
2023-11-03 21:28 UTC, Gabor Kelemen (allotropia)
Details
The document modified by removing the field (41.31 KB, application/msword)
2023-11-03 21:29 UTC, Gabor Kelemen (allotropia)
Details
The modified document in Word and Writer (79.72 KB, image/png)
2023-11-03 21:30 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-11-03 21:04:52 UTC
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)
Comment 1 Gabor Kelemen (allotropia) 2023-11-03 21:28:44 UTC
Created attachment 190643 [details]
Screenshot of the document in Word 2016 and Writer master
Comment 2 Gabor Kelemen (allotropia) 2023-11-03 21:29:36 UTC
Created attachment 190644 [details]
The document modified by removing the field
Comment 3 Gabor Kelemen (allotropia) 2023-11-03 21:30:20 UTC
Created attachment 190645 [details]
The modified document in Word and Writer
Comment 4 tri 2023-11-05 12:29:10 UTC

*** This bug has been marked as a duplicate of bug 157979 ***
Comment 5 Gabor Kelemen (allotropia) 2023-11-05 20:41:39 UTC
(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.
Comment 6 Gabor Kelemen (allotropia) 2024-05-09 15:08:22 UTC
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 ***