Bug 147472 - CHAPTER NUMBERING: Unintentional dot added as before separator
Summary: CHAPTER NUMBERING: Unintentional dot added as before separator
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0 target:7.3.3
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Heading-Numbering regressions-loext-num-list-format
  Show dependency treegraph
 
Reported: 2022-02-16 18:04 UTC by Piotr Osada
Modified: 2024-04-23 03:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Chapter numbering (1) - Level 2 (15.94 KB, image/png)
2022-02-17 09:31 UTC, Piotr Osada
Details
Chapter numbering (2) - Level 2 with numbering "1,2,3 ..." (16.13 KB, image/png)
2022-02-17 09:32 UTC, Piotr Osada
Details
Chapter numbering (3) - L2 numbering "1,2,3 ..." + "." dot suffix (15.92 KB, image/png)
2022-02-17 09:33 UTC, Piotr Osada
Details
Chapter numbering (3) - L2 numbering "1,2,3 ..." + "." dot suffix (22.92 KB, image/png)
2022-02-17 09:37 UTC, Piotr Osada
Details
Chapter numbering (4) - add L1 numbering (16.10 KB, image/png)
2022-02-17 09:37 UTC, Piotr Osada
Details
Chapter numbering (5) - sign/text between (24.05 KB, image/png)
2022-02-17 10:10 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2022-02-16 18:04:40 UTC
Version: 7.3.0.3 (x64) / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: pl-PL
Calc: threaded


Using *.docx document that was alternately edited by MS Word and LO Writer.

1) Tools --> Chapter Numbering --> Numbering (e.g. Level 2)
2) Number (default "None"):
	2.1) Change to "1,2,3, ..."
3) Separator --> After (default <nothing>)
	3.1) Set e.g. "." (dot)

What happens:
--> A "." dot sign is added to place "Before" and headings look like:

.2.1. Heading <-- a dot at the begining

insted of:
2.1. Heading
Comment 1 Piotr Osada 2022-02-16 18:07:09 UTC
If any other informations are needed I can provide it.
Comment 2 Piotr Osada 2022-02-17 09:31:09 UTC
Created attachment 178343 [details]
Chapter numbering (1) - Level 2
Comment 3 Piotr Osada 2022-02-17 09:32:33 UTC
Created attachment 178344 [details]
Chapter numbering (2) - Level 2 with numbering "1,2,3 ..."
Comment 4 Piotr Osada 2022-02-17 09:33:51 UTC
Created attachment 178345 [details]
Chapter numbering (3) - L2 numbering "1,2,3 ..." + "." dot suffix
Comment 5 Piotr Osada 2022-02-17 09:37:01 UTC
Created attachment 178346 [details]
Chapter numbering (3) - L2 numbering "1,2,3 ..." + "." dot suffix
Comment 6 Piotr Osada 2022-02-17 09:37:47 UTC
Created attachment 178347 [details]
Chapter numbering (4) - add L1 numbering
Comment 7 Piotr Osada 2022-02-17 10:08:19 UTC
Actually it is an other problem.
When we have document with given hierarchy:

- Section 1 ------> Heading 1
-- Subsection 1 --> Heading 2
-- Subsection 2 --> Heading 2
- Section 2 ------> Heading 1
-- Subsection 1 --> Heading 2
-- Subsection 2 --> Heading 2

The full numbering "1,2,3 ..." with "." (dot) as suffix would be:

-  1.  Section 1 ------> Heading 1
-- 1.1. Subsection 1 --> Heading 2
-- 1.2. Subsection 2 --> Heading 2
-  2.  Section 2 ------> Heading 1
-- 2.1. Subsection 1 --> Heading 2
-- 2.2. Subsection 2 --> Heading 2

If we want to number only subsections we get dot as prefix:

-      Section 1 ------> Heading 1
--  .1. Subsection 1 --> Heading 2
--  .2. Subsection 2 --> Heading 2
-      Section 2 ------> Heading 1
--  .1. Subsection 1 --> Heading 2
--  .2. Subsection 2 --> Heading 2

that we can suppress by adding e.g. space sign as prefix.

But this replacing is only a workaround of this situation.


+++
Would it be compatible with LO writer functionality to add an option to disable such a character at the beginning?

So in summary my suggestions are:
1) Add an option to disable the display of the "leading character".
2) Adding the ability to change the character separating the numerators of different levels.
2.1) Possibility to enter any text string (e.g. "-", "some text").
2.2) EVENTUALLY: Possibility to define text separating numerators separately for each numerator gap:

e.g..
1.
1-1
1-1-1

or

1.
1_1 <-- intentionally underscore (not a hyphen)
1-1-1


+++
OLD SUMMARY
Unintentional dot added into chapter numbering --> .2.1. Subsection when edditing by Word and Writer

NEW SUMMARY
[Feature request/Suggestion to change behavior] Possibility to remove unintentional dot added into chapter numbering --> .2.1.
Comment 8 Piotr Osada 2022-02-17 10:10:21 UTC
Created attachment 178348 [details]
Chapter numbering (5) - sign/text between
Comment 9 Piotr Osada 2022-02-17 10:14:20 UTC
Another issue is that MS Word deletes names of headings 1 - 4 (Nagłówek 1 - 4, which are used in this document). And I don't know what I have done that it disappeared. And I don't know how to edit document to keep this names.
Comment 10 Dieter 2022-03-04 07:43:39 UTC
i confirm it with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c856f9bec12d98ed49f01578ded79f16ae7be051
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps to reproduce
1. open an new document and write a paragraph
2. Assign chapter level 2 to that paragraph with seperator after number (make sure, that level 1 is empty)

Actual result:
Separator before and after number

Expected result:
Separator only after number

Additional informations
Always a dot before number 8although different charakter is behind number)

Also in
Version: 7.3.1.3 (x64) / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Doesn't happen in

Version: 7.0.6.2 (x64)
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 11 raal 2022-04-18 09:29:14 UTC
This seems to have begun at the below commit.
Adding Cc: to Vasily Melenchuk; Could you possibly take a look at this one?
Thanks
linux-64-7.2$ 7f0cdabd31c467de78bafb851200b8aef156d317 is the first bad commit
commit 7f0cdabd31c467de78bafb851200b8aef156d317
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Jun 29 23:26:49 2021 +0200

    source 9987b518fca1476bd0ce8c86bcf6ac7c81f7b580

https://git.libreoffice.org/core/+/9987b518fca1476bd0ce8c86bcf6ac7c81f7b580
  new ODF numbered list parameter loext:num-list-format
Comment 12 Commit Notification 2022-04-18 18:08:12 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "master":

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

tdf#147472: sw: bug in numbering with previous level NONE

It will be available in 7.4.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 13 Commit Notification 2022-04-19 09:17:32 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/90715026e5a19956ef449694937893c0c76bea21

tdf#147472: sw: bug in numbering with previous level NONE

It will be available in 7.3.4.

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 2022-04-20 10:14:13 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "libreoffice-7-3-3":

https://git.libreoffice.org/core/commit/9d933f2846030fb192a866307a19218d11be9461

tdf#147472: sw: bug in numbering with previous level NONE

It will be available in 7.3.3.

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 15 Dieter 2022-05-07 14:09:02 UTC
VERIFIED with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 83d0f2eebae41d431d9a5bfd1a918523977752d0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Vasily, thank you for fixing it!