Bug 146081 - Reducing line spacing of Arabic will cause inappropriate consequence
Summary: Reducing line spacing of Arabic will cause inappropriate consequence
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Jonathan Clark
URL:
Whiteboard: target:25.2.0 target:24.8.0.2
Keywords:
: 146079 (view as bug list)
Depends on:
Blocks: Arabic-and-Farsi CTL
  Show dependency treegraph
 
Reported: 2021-12-06 18:39 UTC by Seyyed Mohammad
Modified: 2024-08-04 22:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
bug picture (28.89 KB, image/png)
2021-12-06 18:39 UTC, Seyyed Mohammad
Details
Real file that shows problem (16.11 KB, application/vnd.oasis.opendocument.text)
2021-12-13 11:33 UTC, Seyyed Mohammad
Details
Simple document with the bug manifesting (20.17 KB, application/vnd.oasis.opendocument.text)
2022-02-18 16:16 UTC, Eyal Rozenberg
Details
"Annotated" rendering in LO 7.4 of the example document (54.32 KB, application/pdf)
2022-02-18 16:18 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Seyyed Mohammad 2021-12-06 18:39:36 UTC
Created attachment 176742 [details]
bug picture

As you can see in picture, at the middle box of the table we have 3 line in one paragraph, two upper line will become closer than two bottom line when we reduce line spacing of them, under 100%.
Comment 1 Seyyed Mohammad 2021-12-06 19:01:37 UTC
(In reply to Seyyed Mohammad from comment #0)
> Created attachment 176742 [details]
> bug picture
> 
> As you can see in picture, at the middle box of the table we have 3 line in
> one paragraph, two upper line will become closer than two bottom line when
> we reduce line spacing of them, under 100%.

I've tested in 7.2.4.1 and out of table with many line of paragraph not only 3 line, result showed that only two upper line will stick more that other lines by reducing line spacing.
Comment 2 Telesto 2021-12-07 09:46:34 UTC
*** Bug 146079 has been marked as a duplicate of this bug. ***
Comment 3 Ezinne 2021-12-13 05:41:49 UTC
Please, can you share a sample file for testing?
Comment 4 Seyyed Mohammad 2021-12-13 11:33:38 UTC
Created attachment 176894 [details]
Real file that shows problem
Comment 5 Seyyed Mohammad 2021-12-13 11:34:32 UTC
(In reply to Ezinne from comment #3)
> Please, can you share a sample file for testing?

Real file that shows the problem has been added.
Comment 6 QA Administrators 2021-12-14 04:26:20 UTC Comment hidden (obsolete)
Comment 7 Eyal Rozenberg 2022-02-18 16:14:53 UTC
Confirming with:

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 250e4886d85a7e131da76f181b3fa7be02d1a76d
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US

(In reply to Seyyed Mohammad from comment #5)
> Real file that shows the problem has been added.

I'll be adding a version of your document with no Latin text, and less text overall; plus an "annotated screenshot" corresponding to that document. I believe that will clarify the issue we're seeing.
Comment 8 Eyal Rozenberg 2022-02-18 16:16:08 UTC
Created attachment 178381 [details]
Simple document with the bug manifesting
Comment 9 Eyal Rozenberg 2022-02-18 16:18:36 UTC
Created attachment 178382 [details]
"Annotated" rendering in LO 7.4 of the example document

This "screenshot" is actually the result of doing the following:

1. Opening the example document (attachment 178381 [details]).
2. Taking a partial screenshot.
3. Opening the screenshot in LO draw.
4. Adding some annotation.
5. Saving to PDF

So it's not a proper screenshot, but it will help you see what's going on better than just opening the example document.
Comment 10 Seyyed Mohammad 2022-02-19 11:36:14 UTC
This problem is prominent and I want to useer's who has access, to change priority to higher level. If it's not critical it's at least important for arabic/persian language.
Comment 11 Sophie Sipasseuth 2023-12-14 09:51:14 UTC
No repro, when I change the size of the line spacing of the entire paragraph, the change is done on every line homogeneously:

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: bfbae5ddd52cf80af94b250b9de349f0340dbe34
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 12 Jonathan Clark 2024-07-09 23:10:35 UTC
Some quick observations:

This bug affects proportional line spacing for all languages, although the effect is subtle for Latin script.

Disabling the PropLineSpacingShrinksFirstLine compatibility flag results in consistent spacing.
Comment 13 Commit Notification 2024-07-10 19:13:00 UTC
Jonathan Clark committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c012c74e69360dd78890c1d935b802c0baf79da2

tdf#146081 sw: Fix inconsistent prop line spacing

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2024-07-19 07:05:52 UTC
Jonathan Clark committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/2df6c92683fe6565fc4fb4e57998bd4d50c369d1

tdf#146081 sw: Fix inconsistent prop line spacing

It will be available in 24.8.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.