Bug 159549 - FORMATTING LO Writer 7.6 and 24.2 alter settings of Text Body paragraph style when renaming style as Body Text
Summary: FORMATTING LO Writer 7.6 and 24.2 alter settings of Text Body paragraph style...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectNotNeeded
Depends on:
Blocks:
 
Reported: 2024-02-04 04:29 UTC by Kenneth Burke
Modified: 2024-02-23 13:17 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
The line AAAA in the sample document renders differently in LO 7.5.9 than in later versions of LibreOffice Writer (22.37 KB, application/vnd.oasis.opendocument.text)
2024-02-04 04:29 UTC, Kenneth Burke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Burke 2024-02-04 04:29:15 UTC
Created attachment 192378 [details]
The line AAAA in the sample document renders differently in LO 7.5.9 than in later versions of LibreOffice Writer

Consistent with the modification reported in Bug # 154933, LO Writer versions after 7.5.9 intentionally rename paragraph styles named "Text Body" in documents created with earlier versions of LO to "Body Text". The problem is that in that conversion, multiple settings of the style are altered.
Steps to reproduce:
Create file in LO Writer 7.5.9 or earlier.
Include a paragraph using paragraph style named Text Body with settings:
Font: Charis SIL Compact Regular 11 pt
Indent
Before text: 0.0 pt
After text: 0.0 pt
First line: 0.0 pt
Spacing
Above paragraph: 0.0 pt
Below paragraph: 8.0 pt
Line spacing
Fixed of 13.5 pt

Save file
Open the same file in LO Writer 7.6 or 24.2
The paragraph previously using the Text Body style now is set to use the Body Text style.
The Body text style now shows the following settings:

Font: Charis SIL Compact Regular 10 pt
Indent
Before text: 0.0 pt
After text: 0.0 pt
First line: 0.0 pt
Spacing
Above paragraph: 0.0 pt
Below paragraph: 5.8 pt
Line spacing
Fixed of 11.5 pt

Behavior is the same on Windows Terminal Server 2016 and on MacBook Air 2020 OS Sonoma 14.2.1.
Comment 1 Heiko Tietze 2024-02-06 09:48:53 UTC
Follow-up to bug 154933.
Comment 2 sdc.blanco 2024-02-06 11:05:12 UTC
Repro (as follows):

1.  Download attachment  192378 [details] 
2.  Open downloaded file with either: 7.2.7.2 or 24.2.0.0.alpha1
3.  Look at paragraph setting for the line AAAA

With 7.2.7.2, I get the result shown in the OP for 7.5.9. or earlier
With 24.2.0.0.alpha1, I get the result shown in the OP for 7.6 and 24.2

When I look at the styles.xml for the downloaded attachment, I can see that Body Text and Text Body are both present in the styles.xml, with parameters that correspond to what is reported in OP.


Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL


Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 0ddd9f7e055a0c1ecb120de3e40c3fdb8373e9dc
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded
Comment 3 Buovjaga 2024-02-23 13:17:32 UTC
Checking with the example file, the change can be seen with linux-64-7.6 repo when comparing commit c83d241effbd09491e9f96d3e435ab91700f58b0 to its preceding one. Binary hash is a2ebf434f3b0b3ca9b957c1d56ff94fe466012f2 in that repo.

However, I could not reproduce it from scratch when I saved from oldest of 7.5 and opened with 24.2.