Bug 124785 - FILEOPEN RTF New, empty paragraph appears in the footer
Summary: FILEOPEN RTF New, empty paragraph appears in the footer
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: RTF-Header-Footer
  Show dependency treegraph
 
Reported: 2019-04-17 09:20 UTC by NISZ LibreOffice Team
Modified: 2023-12-09 09:44 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
The document with the issue (61.79 KB, application/rtf)
2019-04-17 09:21 UTC, NISZ LibreOffice Team
Details
A screenshot showcasing the issue (125.17 KB, image/png)
2019-04-17 09:22 UTC, NISZ LibreOffice Team
Details
Screenshot of the document in 3.5.0-rc3 and 3.6.0 (150.60 KB, image/png)
2019-05-23 14:13 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2019-04-17 09:20:38 UTC
Description:
A new, empty paragraph appears after the (originally) last paragraph in the footer of this document when opened in LibreOffice Writer. The other issue with this document (Footer is positioned differently in Writer compared to Word) is dealt with in a different bugreport.

Steps to Reproduce:
    1. Open the attached RTF file (RTF-Footer_issues.rtf) in LibreOffice Writer and Microsoft Word.
    2. Compare the two side by side.

Actual Results:
There is an empty paragraph at the end of the footer in LibreOffice Writer which doesn't appear in Microsoft Word.

Expected Results:
There shouldn't be an empty paragraph at the end of the footer.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice details:
Version: 6.3.0.0.alpha0+ (x64)
Build ID: 74288f5af28de3d14044c951e7e5d62bb2e22301
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-04-12_00:11:21
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: threaded
Comment 1 NISZ LibreOffice Team 2019-04-17 09:21:28 UTC
Created attachment 150810 [details]
The document with the issue
Comment 2 NISZ LibreOffice Team 2019-04-17 09:22:02 UTC
Created attachment 150811 [details]
A screenshot showcasing the issue
Comment 3 Dieter 2019-04-17 13:11:21 UTC
I confirm it with

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 421e6fc3cd2e6fe37afbef341e2d0ad7b8edde37
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-04-07_01:12:58
Locale: en-US (de_DE); UI-Language: en-US
Calc: threaded
Comment 4 Xisco Faulí 2019-05-23 10:51:23 UTC
Also reproducible in

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 5 Gabor Kelemen (allotropia) 2019-05-23 12:46:36 UTC
The problem is that the main content of this footer is inside a frame in Word, that is placed in the footer. The footer still has its empty default paragraph, and the frame is anchored to that. 
This frame is positioned such way that the last paragraph is exactly at the bottom border of the paper.

In Writer the frame is not present in the Navigator as a separate entity.
Its content is folded into the footer main text, before the default empty paragraph, which appears after the page number.

Also the first paragraph has an upper border that is lost, and some 6pt spacing after instead of 0 - these should go as a separate bug (or two).
Comment 6 Gabor Kelemen (allotropia) 2019-05-23 14:13:53 UTC
Created attachment 151629 [details]
Screenshot of the document in 3.5.0-rc3 and 3.6.0

This seems like an old regression from 3.5 to 3.6
Comment 7 Aron Budea 2019-05-23 16:47:19 UTC
It's a regression introduced in the following range, bibisected using repo bibisect-43all:
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=5f06a2b734941a79983ecf8476b412bf6ce5e9e8..d453788ac0476cc02b929b0907718ca771d6d956

Miklos has a couple of RTF-specific commits in that range.
Comment 8 Miklos Vajna 2019-05-24 07:20:21 UTC
Thanks for the bibisect. Sadly I don't see any commit in that range which is obviously connected to footers. (Reviewed my commits and rtf commits.)
Comment 9 Dieter 2021-12-01 15:47:55 UTC
Still the same in

Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

But I also think that the main difference ist, that text of footer is in a frame in word. I can't see a frame in writer. Perhaps additional paragraph is related to this?
Comment 10 QA Administrators 2023-12-02 03:16:27 UTC Comment hidden (obsolete)
Comment 11 Dieter 2023-12-09 09:44:53 UTC
WORKSFORME with

Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (de_DE); UI: en-GB
Calc: CL threaded