Bug 115060 - Chapter Numbering: Unwanted space after numbering
Summary: Chapter Numbering: Unwanted space after numbering
Status: RESOLVED DUPLICATE of bug 114773
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.7.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-16 23:57 UTC by Yvan Rose
Modified: 2018-01-18 20:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File with Chapter numbering example (works well in LO 5.2.7 but not in subsequent versions) (25.81 KB, application/vnd.oasis.opendocument.text)
2018-01-16 23:57 UTC, Yvan Rose
Details
Further testing - see part highlighted in yellow on p. 7 of document (26.91 KB, application/vnd.oasis.opendocument.text)
2018-01-18 00:11 UTC, Yvan Rose
Details
Further testing - see part highlighted in yellow on p. 7 of document (27.14 KB, application/vnd.oasis.opendocument.text)
2018-01-18 00:24 UTC, Yvan Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yvan Rose 2018-01-16 23:57:39 UTC
Created attachment 139138 [details]
File with Chapter numbering example (works well in LO 5.2.7 but not in subsequent versions)

In Tools > Chapter Numbering, the Numbering followed by "Nothing" option does not behave as intended: if this option is selected, Writer automatically inserts an unwanted space after the numbering within the Table of Contents. 

* The issue came up after I updated my LO from 5.2.7 to 5.4.4. LO 5.2.7 behaves as expected. 

* I also verified that the problem exists in LO 5.3.7; so it seems like the bug emerged somewhere in the transition between 5.2 and 5.3. 

* I attach a sample file showing this issue. If we update the index (ToC) in LO 5.2.7, it behaves normally; in LO 5.3 and 5.4, an unwanted space appears after the chapter number after we update the index.

Thank you very much for looking into this!
Comment 1 Regina Henschel 2018-01-17 13:37:52 UTC
I can confirm the behavior. The question is, whether there should be an automatic space after E# in the TOC. The same unwanted space after E# has been reported in bug 114773. This is connected to bug 44282 with was fix and reverted. I do not find the issue, where the space had been introduced.

My opinion here:
(1)The chapter numbering setting "followed by" (nothing/space/tab) effects only the heading or list item itself, not the TOC and not any cross reference.
(2)If a distance between chapter number and chapter text is desired in the TOC, then it should be integrated into the default entry template by using the fixed text area (<text:index-entry-span> in file format) between E# and E. Such way the user has full control to use it or not.

Yvan Rose: You should try another design. Put the colon behind the chapter heading number as "behind" into the chapter numbering itself and start the heading text immediately without colon. Use space or tab in the chapter numbering "followed by".

I don't know, whether this is duplicate to bug 114773, because I don't know how the string in the TOC is generated from the template.
Comment 2 Yvan Rose 2018-01-18 00:11:06 UTC
Created attachment 139167 [details]
Further testing - see part highlighted in yellow on p. 7 of document
Comment 3 Yvan Rose 2018-01-18 00:23:04 UTC
Thank you for your reaction, Regina. I tried some workarounds, and I could get by, but that doesn't solve the issue. (I agree that the issue was fixed for a while but then reverted.)

* In the ToC of the new document, there are two spaces added after the colon, now set in Chapter numbering, which means the 'gremlin' space is still there.

* The issue appears to affect Level 1 of Chapter numbering, which also affects Level 1 numbering in custom lists, something I illustrate with Table and Figure numbering in the new (2nd) attachment
Comment 4 Yvan Rose 2018-01-18 00:24:04 UTC
Created attachment 139169 [details]
Further testing - see part highlighted in yellow on p. 7 of document
Comment 5 Yvan Rose 2018-01-18 12:57:59 UTC
(In reply to Regina Henschel from comment #1)
> I can confirm the behavior. The question is, whether there should be an
> automatic space after E# in the TOC. The same unwanted space after E# has
> been reported in bug 114773. This is connected to bug 44282 with was fix and
> reverted. I do not find the issue, where the space had been introduced.
> 
> My opinion here:
> (1)The chapter numbering setting "followed by" (nothing/space/tab) effects
> only the heading or list item itself, not the TOC and not any cross
> reference.
> (2)If a distance between chapter number and chapter text is desired in the
> TOC, then it should be integrated into the default entry template by using
> the fixed text area (<text:index-entry-span> in file format) between E# and
> E. Such way the user has full control to use it or not.
> 
> Yvan Rose: You should try another design. Put the colon behind the chapter
> heading number as "behind" into the chapter numbering itself and start the
> heading text immediately without colon. Use space or tab in the chapter
> numbering "followed by".
> 
> I don't know, whether this is duplicate to bug 114773, because I don't know
> how the string in the TOC is generated from the template.

Hello Regina,
I added more details in Comment 3. It also does look like this is a duplicate/similar issue as bug 114773. Thank you very much for any help you can provide!
Comment 6 Thomas Lendo 2018-01-18 20:03:14 UTC
Hi Yvan, thanks for your report. Your initial reported issue is indeed a duplicate of bug 114773 so I will set it as dupe.

If you encounter another issue or inconsistency than the space-in-ToC problem, please file another bug(s).

Regina: That the chapter numbering setting "followed by" (nothing/space/tab) doesn't effect is a good thing. It's for chapter appearance. ToC appearance should be handled separately and if you want a space/whatever between chapter number and text, you maybe don't want the same in a ToC. (I'll second that.) I wouldn't want to influence a ToC by the chapter numbering dialog.

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