Bug 145308

Summary: Chapter Numbering: "Before" characters from level are added, that have no numbering
Product: LibreOffice Reporter: mr.obwl
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: dgp-mail
Priority: medium    
Version: 7.2.0.4 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=147472
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103370, 115121    

Description mr.obwl 2021-10-25 08:20:39 UTC
Description:
Once you used a character before the number of a chapter, the separator ":" is still shown after deleting the character.

Steps to Reproduce:
When you define chapter numbering with "level one - numbering: none" and following levels with "numbering: 1,2,3" everything works as expected.

When you once use the the function to enter a character before the number of the chapter and erase this character, the separator (".") is shown before the beginning of the chapters' number:

Actual Results:
Heading 1
.1 Heading 2
.1.1 Heading 3
.1.2 Heading 3
.2 Heading 2

Expected Results:
Heading 1
1 Heading 2
1.1 Heading 3
1.2 Heading 3
2 Heading 2


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.2.2.2 (x64) / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 1 Dieter 2021-11-10 17:57:37 UTC
I confirm it with

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

Steps to reproduce

1. Add three paragraphs to a document and assign the following styles: Heading 1, Heading 2, Heading 3
2. Tools => chapter numbering
3. Level 1: Number [None] Paragraph Style [Heading1]
4. Level 2: Number [1,2,3...] Paragraph Style [Heading2] Separator: "." Before

Actual result
.1 in preview and also in document after pressing O.K.

4. Level 2: Number [None]
5. Level 3: Number [1,2,3...] Paragraph Style [Heading3] Separator: "." Before

Actual result
..1 in preview and also in document after pressing OK

Explanation:
LO doesn't respect, that level 1 and 2 have no numbers and adds the dots from those levels.
Comment 2 QA Administrators 2024-03-30 03:14:21 UTC Comment hidden (obsolete)
Comment 3 Dieter 2024-04-11 19:31:43 UTC
Not reproducible for me with

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5ebdcc60701ca5f2d267f92fa69ac06202309c52
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

=> RESOVED WORKSFORME