Bug 157928 - Changing the indentation of paragraphs
Summary: Changing the indentation of paragraphs
Status: RESOLVED DUPLICATE of bug 159366
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:odt, regression
Depends on:
Blocks:
 
Reported: 2023-10-26 08:34 UTC by Cyril
Modified: 2024-04-02 05:34 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the issue (57.86 KB, image/png)
2023-10-26 08:34 UTC, Cyril
Details
Template (13.63 KB, application/vnd.oasis.opendocument.text-template)
2023-10-26 08:37 UTC, Cyril
Details
File created with the template (15.08 KB, application/vnd.oasis.opendocument.text)
2023-10-26 08:38 UTC, Cyril
Details
LO 24.2 (27.14 KB, image/png)
2023-10-27 10:49 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril 2023-10-26 08:34:21 UTC
Created attachment 190430 [details]
Screenshot of the issue

I created a template with different indentations for paragraphs of different levels.

With LibreOffice 7.6, the indentation is displayed correctly when I create a document from this template. But after closing and reopening the document, the indentation is no longer good (see attachements).

I installed LibreOffice 7.5 on the same machine, there is no problem.

Paragraph indentation :
- Level 1 : 58 pt before the text ; 0 pt after the text ; 58 pt for the first line
- Level 2 : 18 pt before the text ; -36 pt after the text ; 0 pt for the first line
- Level 3 : 36 pt before the text ; 0 pt after the text ; 0 pt for the first line

List style :
- Level 1/2/3 : aligned at 18 pt ; Tab stop at 36 pt ; Indent at 36 pt
Comment 1 BogdanB 2023-10-26 08:36:36 UTC
Please attach a demo document.
Comment 2 Cyril 2023-10-26 08:37:15 UTC
Created attachment 190432 [details]
Template
Comment 3 Cyril 2023-10-26 08:38:38 UTC
Created attachment 190433 [details]
File created with the template
Comment 4 Cyril 2023-10-26 08:39:04 UTC
(In reply to BogdanB from comment #1)
> Please attach a demo document.

No problem, I attached the template and a demo document.
Comment 5 Stéphane Guillou (stragu) 2023-10-26 10:04:50 UTC
Tested with the provided template:
1. Insert heading: Cyril Partie Niv 1
2. Presse Enter, insert heading: Cyril Partie Niv 2
3. Presse Enter, insert heading: Cyril Partie Niv 3
4. Save ODT, File > Reload

Result: Indentation lost, all numbering aligned at -0.64 cm.

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fd69b546ad36452560cb11ccb28e78632d65f045
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Not reproduced in:

Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

-> regression.
Comment 6 raal 2023-10-27 10:49:15 UTC
Created attachment 190450 [details]
LO 24.2

No repro with Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 97b6b6b16c4b623f8a34393a906272439a7f0314
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 7 sdc.blanco 2023-10-27 11:14:24 UTC
Do not repro using STR in comment 5 and starting with  template.ott (attachment 190432 [details])

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cb46ad4c4602fbb6aeab482e9370e31495e12cfe
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

Additional information.

1. The PS Cyril Partie Niv [1-3] in template.ott (attachment 190432 [details]) do not have any list style assigned to each paragraph style.

2. In contrast, in demo.odt (attachment 190433 [details]) each of these three PS also have a list style assigned (with same name). 

3. I have not tried to track down/reproduce the details reported in OP, but I suspect there is an interaction between the PS and the List style which is also assigned to the PS. In other words: should make sure that tests with different versions are actually using the same PS setting (with or without assigned list style).
Comment 8 Cyril 2023-10-27 12:17:35 UTC
(In reply to sdc.blanco from comment #7)
> Do not repro using STR in comment 5 and starting with  template.ott
> (attachment 190432 [details])
> 
> Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: cb46ad4c4602fbb6aeab482e9370e31495e12cfe
> 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
> 
> Additional information.
> 
> 1. The PS Cyril Partie Niv [1-3] in template.ott (attachment 190432 [details]
> [details]) do not have any list style assigned to each paragraph style.
> 
> 2. In contrast, in demo.odt (attachment 190433 [details]) each of these
> three PS also have a list style assigned (with same name). 
> 
> 3. I have not tried to track down/reproduce the details reported in OP, but
> I suspect there is an interaction between the PS and the List style which is
> also assigned to the PS. In other words: should make sure that tests with
> different versions are actually using the same PS setting (with or without
> assigned list style).

Very strange because on my computer, with LO 7.5 and LO 7.6, each PS has a list style assigned in the template.

I tried again :
1. I created a document IN LO 7.6 with the template, containing 3 paragraph formating with Cyril Partie Niv 1, Cyril Partie Niv 2 and Cyril Partie Niv3.
2. When I open the document with LO 7.6, I loose the indentation (and the PS has a list style assigned).
3. When I open the same document with LO 7.5, the indentation is good.

I tried also the same manipulations but with creating the a document with LO 7.5 and the result is the same (indentation lost when I open the document with LO 7.6 but good indentation with LO 7.5).
Comment 9 Cyril 2023-10-27 12:25:38 UTC
More details :

When I open the document with LO 7.5, the indentation of the paragraphs are the same as in the PS :
- Level 1 : 58 pt before the text ; 0 pt after the text ; 58 pt for the first line
- Level 2 : 18 pt before the text ; -36 pt after the text ; 0 pt for the first line
- Level 3 : 36 pt before the text ; 0 pt after the text ; 0 pt for the first line

When I open the SAME document with LO 7.6, the indentation of the paragraphs are different that in the PS :
- Level 1 : 36 pt before the text ; 0 pt after the text ; -18 pt for the first line
- Level 2 : 36 pt before the text ; -36 pt after the text ; -18 pt for the first line
- Level 3 : 36 pt before the text ; 0 pt after the text ; -18 pt for the first line

With LO 7.5 and LO 7.6, the values of position for the list in the document and in the style are the same (Level 1/2/3 : aligned at 18 pt ; Tab stop at 36 pt ; Indent at 36 pt).
Comment 10 Cyril 2024-03-30 17:28:08 UTC
I will migrate on Kubuntu 24.04 next month, so I tried LibreOffice 24.2.2.
The problem still remain : I lost the indentation of the pargraphs with numerotation.
Comment 11 Stéphane Guillou (stragu) 2024-04-02 05:34:24 UTC
Same bibisect result as bug 159366, using linux-64-7.6 repo (build [eb5be05d1b25dfc951e83d02d7cf455e5facc5a6]):

commit ade0a153f453500f15343380ac937252992733e0
author	Michael Stahl 	Mon Feb 27 20:52:39 2023 +0100
committer	Michael Stahl 	Tue Feb 28 15:43:40 2023 +0000
tdf#114287 xmloff: ODF import: fix text:list override of list style
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147930

Let's mark as duplicate.
Comment 12 Stéphane Guillou (stragu) 2024-04-02 05:34:33 UTC

*** This bug has been marked as a duplicate of bug 159366 ***