Bug 153488 - The "Separator" field in the "Numbering by Chapter" section in the AutoCaption Dialog should only allow one character to be entered
Summary: The "Separator" field in the "Numbering by Chapter" section in the AutoCaptio...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: Fields AutoCaption
  Show dependency treegraph
 
Reported: 2023-02-09 02:12 UTC by sdc.blanco
Modified: 2023-03-19 17:30 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of AutoCaption settings and result in a Frame (46.23 KB, image/png)
2023-02-24 16:25 UTC, sdc.blanco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2023-02-09 02:12:29 UTC
1.  Open a Writer Document with a Outline Level 1 Heading (or create one).

2.  Tools - Options - LibreOffice Writer - AutoCaption

3.  Select "LibreOffice Writer Frame", which activates the "Numbering (Captions) by Chapter" section.

4.  Set Level = 1

5.  Enter (any) multiple characters for "Separator"

6. OK.

7. Place cursor after the outline level 1 heading and insert a frame.

Actual result:  Caption is inserted in frame with the multi-character separator.
Expected result:  Only a single character should be allowed.

8.  Edit the inserted caption field.

Notice that it is not possible to enter multi-character separators.
In this connection see: bug 153089.
Comment 1 Dieter 2023-02-24 14:08:10 UTC
> Actual result:  Caption is inserted in frame with the multi-character
> separator.
I can't confirm. Separator has only one character as can be seen, if you edit the filed. In fact I can't see, that setting of separator has effect that it should have [1] [2] or any effect (Auto-Caption-Dialog as well as edit fields dalog)

[1] https://help.libreoffice.org/7.5/en-GB/text/shared/optionen/01041100.html?System=WIN&DbPAR=WRITER&HID=modules/swriter/ui/optcaptionpage/OptCaptionPage#bm_id1826838

[2] https://help.libreoffice.org/7.5/en-GB/text/swriter/01/04090005.html?System=WIN&DbPAR=WRITER&HID=modules/swriter/ui/fldvarpage/FieldVarPage#bm_@@nowidget@@
Comment 2 sdc.blanco 2023-02-24 16:25:48 UTC
Created attachment 185575 [details]
screenshot of AutoCaption settings and result in a Frame

(In reply to Dieter from comment #1)
> I can't confirm. 
In AutoCaption (in Options), did you:
a. Select LibreOffice Writer Frame  (in the left window part of the dialog),
which should activate the right side of the dialog.
b. then did you enter multicharacter strings in the two Separator fields, as well as set the Level to something else than None?

The attachment shows a screenshot of the AutoCaption settings.
After I do that (and close the dialog), then the multicharacter separators get added automatically when I insert a frame (see bottom of attached screenshot, where you will see both Separator entries are included in the automatically generated caption label.  (some of the labels might be different in the attachment, but the functionality is the same)

Reproduced by with 7.2.7.2 and 7.6.0.0.alpha0+
Comment 3 Stéphane Guillou (stragu) 2023-02-24 22:42:53 UTC
reproduced with:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d9b9d1228cdee69e767833202442a1fed6174a6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

It is a discrepancy that needs fixing as one can later on edit the field ("right-click > Edit fields..." or double-click on it) and see that the Edit Fields dialog only allows on single character as a separator.

This is a regression as OOo 3.3 doesn't allow more than one character in the AutoCaption settings:

OpenOffice.org 3.3.0
OOO330m20 (Build:9567)

But LO 5.2 does:

Version: 5.2.0.4
Build ID: 066b007f5ebcc236395c7d282ba488bca6720265
CPU Threads: 8; OS Version: Linux 5.15; UI Render: default; 
Locale: en-AU (en_AU.UTF-8)