https://bugs.documentfoundation.org/show_bug.cgi?id=174149
Bug ID: 174149
Summary: Writer: Cross-references to numbered paragraphs
include numbering separators since LibreOffice 24.2
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 209331
--> https://bugs.documentfoundation.org/attachment.cgi?id=209331&action=edit
Sample document reflecting current behavior
Description
The behaviour of cross-references to numbered paragraphs has changed since
LibreOffice 24.2.
In LibreOffice 7, when a numbering style had text specified in its Before and
After separator fields, cross-references to the numbered paragraph included
only the paragraph number, not the text specified in these fields.
Since LibreOffice 24.2 (I wasn't able to test the intermediate versions), the
separator text is included in the cross-reference, regardless of the selected
reference format.
I do not know whether this change was intentional or whether it is a
regression. However, it breaks existing documents and workflows that rely on
the previous behaviour.
Steps to reproduce
1. Open the attached example document, Separator.odt.
2. Inspect the numbering style used by the first two paragraphs. The Before
separator contains "My ", and the After separator contains " paragraph".
3. Insert a cross-reference to the first paragraph using the Numbered Paragraph
reference type.
4. Test the available reference formats, including Number, Number (no context),
and Number (full context).
Actual results
The separator text is included in the cross-reference, regardless of the
selected reference format.
The attached example demonstrates the following results:
Number: My 1. paragraph
Number (no context): My 1. paragraph
Number (full context): My 1. paragraph
The line wrapping in the document may differ, but the separator text is
included in all three cases.
Expected results
The default behaviour should be consistent with LibreOffice 7: cross-references
to numbered paragraphs should exclude the text specified in the numbering
style's Before and After separator fields, unless the user explicitly requests
otherwise.
The reference format should determine whether contextual numbering is included,
without automatically including the separator text.
Suggested solution
If the current behaviour is intentional, it would be helpful to introduce an
explicit option controlling whether numbering separators are included in
cross-references.
For backward compatibility, the default should exclude the separator text,
preserving the behaviour of earlier LibreOffice versions. An additional option
could allow users to include the separator text when needed.
This would preserve existing document behaviour while providing the flexibility
to use the new behaviour intentionally.
Attachment
Separator.odt — a minimal example demonstrating the issue with all three
reference formats.
Related reports
- tdf#147774 — CROSS REFERENCE TO HEADING: Need option to drop the final number
separator in reference text.
- tdf#153680 — FILEOPEN: Cross-reference numbering includes an additional
separator.
--
You are receiving this mail because:
You are the assignee for the bug.