Bug 96276 - Fileopen: RTF paragraph line spacing 1.15 instead of Single
Summary: Fileopen: RTF paragraph line spacing 1.15 instead of Single
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:rtf
: 106637 (view as bug list)
Depends on:
Blocks: RTF-Paragraph
  Show dependency treegraph
 
Reported: 2015-12-06 00:11 UTC by Ari Latvala
Modified: 2024-03-15 20:40 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
PDF version showing the expected layout (181.77 KB, application/pdf)
2015-12-06 00:11 UTC, Ari Latvala
Details
RTF version having incorrect line spacing (141.43 KB, application/rtf)
2015-12-06 00:12 UTC, Ari Latvala
Details
doc layout in MS Word 2016 (364.90 KB, application/pdf)
2017-03-29 18:43 UTC, Laszlo Bona
Details
doc layout in Libre Office 5.1 (61.95 KB, application/pdf)
2017-03-29 18:44 UTC, Laszlo Bona
Details
RTF version (reduced) (37.50 KB, application/rtf)
2017-10-26 15:09 UTC, Aron Budea
Details
The example file in Word and Writer master (145.33 KB, image/png)
2022-01-27 09:20 UTC, Gabor Kelemen (allotropia)
Details
Another example file, this time with double line spacing (60.76 KB, application/msword)
2023-01-01 15:16 UTC, Gabor Kelemen (allotropia)
Details
Double line spacing from style, overridden with DF, which is not imported in Writer (163.19 KB, image/png)
2023-01-01 15:17 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ari Latvala 2015-12-06 00:11:33 UTC
Created attachment 121061 [details]
PDF version showing the expected layout

LibreOffice 5.0.4.1 running on Windows 7 64-bit. Layout incorrect for RTF version of document "Pentutarkistus / Eläinlääkärintodistus" available at http://www.kissaliitto.fi/lomakkeet/rekisterointi

Attached RTF and PDF versions of the same document for comparison. Tables having paragraph line spacing set to Proportional 115% instead of Single leading to the vertically expanded view with the last lines disappearing and document turning from once page to two pages.
Comment 1 Ari Latvala 2015-12-06 00:12:19 UTC
Created attachment 121062 [details]
RTF version having incorrect line spacing
Comment 2 Buovjaga 2015-12-06 13:35:31 UTC
Confirmed.

4.3 does not have this, but it is otherwise messed up. Not sure, if keyword regression is appropriate so leaving it out for now.

Win 7 Pro 64-bit, Version: 5.0.3.2 (x64)
Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75
Locale: fi-FI (fi_FI)

Version: 5.2.0.0.alpha0+
Build ID: 81fa5340191baf8687f9c82f1f414f5afc86b529
Threads 4; Ver: Windows 6.1; Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-12-03_21:19:19
Locale: fi-FI (fi_FI)
Comment 3 Timur 2015-12-08 10:33:07 UTC
4.3 has different behavior, but this spacing is wrong since 4.3.1.
Comment 4 Cor Nouws 2015-12-18 12:37:09 UTC Comment hidden (obsolete)
Comment 5 Timur 2015-12-24 10:31:05 UTC Comment hidden (obsolete)
Comment 6 Cor Nouws 2015-12-27 21:38:36 UTC Comment hidden (obsolete)
Comment 7 Cor Nouws 2015-12-28 08:16:27 UTC Comment hidden (obsolete)
Comment 8 Ari Latvala 2016-06-02 20:27:44 UTC Comment hidden (obsolete)
Comment 9 Laszlo Bona 2017-03-29 18:41:25 UTC
The problem still exests

Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial1
Comment 10 Laszlo Bona 2017-03-29 18:43:36 UTC Comment hidden (obsolete)
Comment 11 Laszlo Bona 2017-03-29 18:44:10 UTC Comment hidden (obsolete)
Comment 12 Aron Budea 2017-10-26 15:09:26 UTC
Created attachment 137305 [details]
RTF version (reduced)

Here's the RTF from attachment 121062 [details] reduced in Word 2013, which exhibits the bug, and could be used for bibisecting.
Comment 13 Aron Budea 2017-10-26 15:11:02 UTC
Bibisected to the following commit using repo  bibisect-44max. Adding Cc: to Michael Stahl, please take a look sometimes.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=f8e8e476aa0a5576234dbb4daac9dc299e044e61
author		Michael Stahl <mstahl@redhat.com>	2014-08-02 16:55:55 (GMT)
committer	Michael Stahl <mstahl@redhat.com>	2014-08-02 17:09:44 (GMT)

fdo#81944: writerfilter: RTF import: don't drop fonts in stylesheet
Comment 14 Ari Latvala 2018-06-07 06:42:54 UTC Comment hidden (obsolete)
Comment 15 Ari Latvala 2018-06-07 06:48:50 UTC
Clarification, line spacing on the whole document is incorrectly 1.15 with LO 6.0.4, should be single.
Comment 16 Ari Latvala 2018-06-07 07:23:13 UTC
*** Bug 106637 has been marked as a duplicate of this bug. ***
Comment 17 Ari Latvala 2019-02-11 14:32:21 UTC Comment hidden (obsolete)
Comment 18 Michael Stahl (allotropia) 2019-04-10 09:06:53 UTC
Comment on attachment 132264 [details]
doc layout in MS Word 2016

this attachment has nothing to do with the RTF file initially attached to this bug, and it's a PDF without the corresponding RTF, so it is quite useless for fixing anything -> tagging "obsolete"
Comment 19 Michael Stahl (allotropia) 2019-04-10 09:07:05 UTC
Comment on attachment 132265 [details]
doc layout in Libre Office 5.1

this attachment has nothing to do with the RTF file initially attached to this bug, and it's a PDF without the corresponding RTF, so it is quite useless for fixing anything -> tagging "obsolete"
Comment 20 Michael Stahl (allotropia) 2019-04-10 09:17:54 UTC
this was not fixed by commit 3d74ddd190a5087e0a54ef7b14d0a43006745ec3

apparently the paragraphs don't have any style applied to them in the RTF but in Word they have "Standard" and corresponding "Default Style" in Writer; it looks like the \s0 style is applied implicitly or something like that?
Comment 21 QA Administrators 2021-04-10 03:44:40 UTC Comment hidden (obsolete)
Comment 22 Ari Latvala 2021-05-17 20:10:38 UTC
Just tested, whole RTF version of the document is still really messed up including the bug described on this bug report.

Version: 7.1.3.2 (x64) / LibreOffice Community
Build ID: 47f78053abe362b9384784d31a6e56f8511eb1c1
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded
Comment 23 Gabor Kelemen (allotropia) 2022-01-27 09:20:29 UTC
Created attachment 177824 [details]
The example file in Word and Writer master

Still a problem in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: eb69767d7c1bb8e6e780fd9503f08c9d7f5ecb45
CPU threads: 13; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

There seems to be a direct formatting applied to the paragraph overriding 
* the 0.35 cm (10pt) After spacing (this is applied correctly in Writer) 
* and the 1.15 line spacing (this not applied in Writer)
Comment 24 Gabor Kelemen (allotropia) 2023-01-01 15:16:05 UTC
Created attachment 184421 [details]
Another example file, this time with double line spacing
Comment 25 Gabor Kelemen (allotropia) 2023-01-01 15:17:47 UTC
Created attachment 184422 [details]
Double line spacing from style, overridden with DF, which is not imported in Writer

Another example arrived, this time with double line spacing value, which is handled incorrectly in Writer.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 44355a90b3450111ad87ad4b6607a564e41d7b54
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded
Comment 26 Gabor Kelemen (allotropia) 2023-07-06 12:33:38 UTC
WIP patch at: https://gerrit.libreoffice.org/c/core/+/145034
Comment 27 Ari Latvala 2024-03-15 20:40:14 UTC
Bug seems to be there still at the latest version

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded