Bug 148272 - Cross-reference to numbering wrongly includes separator character
Summary: Cross-reference to numbering wrongly includes separator character
Status: RESOLVED DUPLICATE of bug 142555
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.6.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Fields-Cross-Reference
  Show dependency treegraph
 
Reported: 2022-03-30 14:07 UTC by Charles Valente
Modified: 2022-04-25 10:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example with the references with the bug. (13.71 KB, application/vnd.oasis.opendocument.text)
2022-03-30 14:10 UTC, Charles Valente
Details
Example (68.71 KB, image/png)
2022-04-22 10:14 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Valente 2022-03-30 14:07:49 UTC
Description:
Inserting a cross-reference to the "Number" or "Number (no context)" of a numbered paragraph brings not only the number, but also the separator character.

Steps to Reproduce:
1. Format > Bullets and Numbering... > Customize > Number: 1,2,3,...  and Separator After . (for instance)
2. Write down some numbered paragraphs
3. Insert > Cross-reference... > in "Type", choose "Numbered Paragraphs"; in "Refer using" choose "Number" or "Number (no context)"; in "Selection", choose any paragraph and clik "Insert" button.

Actual Results:
The number of the paragraph, along with the separator character, is inserted.

Expected Results:
The number, and only the number, of the referenced paragraph, should be inserted.


Reproducible: Always


User Profile Reset: No



Additional Info:
The bug does not happen in the previous version I was using, 7.0.6.
It happens in 7.2.6.2 and also in 7.3.1.3.
Comment 1 Charles Valente 2022-03-30 14:10:43 UTC
Created attachment 179214 [details]
Example with the references with the bug.

.odt file with example of the bug.
In 7.06 and before, the references would be "2" and "3".
In 7.2.6.2 and 7.3.1.3, they are "2." and "3.".
Comment 2 Dieter 2022-04-14 05:11:19 UTC
I confirm the described behaviour with

Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
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

but for me it's the expected behaviour. If it wasn't present in previous version, previous buggy behaviour has been fixed.

But perhaps there are different opinions here.
Comment 3 Charles Valente 2022-04-14 12:17:26 UTC
I don't think it is a matter of interpretation.
When one chooses to reference the number of an entry in a numbered list (and just the number, like in the options "Number" and "Number (no context)"), the word processor is supposed to insert just the number.
That is exactly the behavior in e.g., MS Word.
And it was also the behavior in LO Writer up to version 7.
That means eons in OpenOffice and LibreOffice time scale.
Comment 4 Dieter 2022-04-14 12:27:01 UTC
So lets ask Design-Team

cc: Design-Team
Comment 5 Heiko Tietze 2022-04-14 14:23:39 UTC
Same discussion recently in bug 142555 was decided WONTFIX since you have the choice of Number or Chapter.

*** This bug has been marked as a duplicate of bug 142555 ***
Comment 6 Charles Valente 2022-04-16 17:46:10 UTC
At least in 7.2.6.2, "Number" and "Chapter" do not solve the problem: the separator character is still inserted with the number of the item.
There is, from what I tested, *no way* to just insert the number, as it was before 7.2.
Maybe I am doing something wrong given the new way the cross-reference and the numbering is happening in the new versions of LO Writer.
Comment 7 Heiko Tietze 2022-04-22 10:14:10 UTC
Created attachment 179725 [details]
Example

Using numbers instead of literals works the same (and without the locale bug).
Comment 8 Charles Valente 2022-04-22 14:28:53 UTC
(In reply to Heiko Tietze from comment #7)
> Created attachment 179725 [details]
> Example
> 
> Using numbers instead of literals works the same (and without the locale
> bug).

Thank you for your reply, but I still can't get it.
What exactly should we do to have the same behavior as before?
For me, the "bug" still happens, and the print screen you sent haven't clarified much.
What I am unfortunately having to do now to number the paragraphs is a 'brute force' approach, creating an arabic numerical field variable specific as a 'paragraph number'. Cross-references to this variable are obviously correct now, but I have to manually insert the separation character.
But for other files I have written before 7.2.6 (some of them with hundreds of pages), I cannot use that workaround.
Botton line is: I will stop upgrading LO, because it is getting worse in a sense.
I do not doubt the current development team has the best of intentions, but I am very thankful to those developing color television standards in the 1950s and 1960s, because instead of making all the millions of black and white television sets obsolete, they created a backward compatible system, so that those with the old TVs could watch a color transmission.
Comment 9 Heiko Tietze 2022-04-25 10:37:40 UTC
To insert just the number you have to use Numbered Paragraph and Chapter (my example is "Chaper One:" becoming "One"). Nothing has changed to my knowledge with 7.2. Perhaps you share an example documents along with screenshots expected / before 7.2 and unexpected / after 7.2.