Bug 157863 - List bullet/numbering using adjacent character formatting (colour, bold, italic) depends on selection
Summary: List bullet/numbering using adjacent character formatting (colour, bold, ital...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Bullet-Number-Outline-Lists Font-Effects
  Show dependency treegraph
 
Reported: 2023-10-20 16:08 UTC by Stéphane Guillou (stragu)
Modified: 2024-01-05 23:43 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
sample ODT (11.24 KB, application/vnd.oasis.opendocument.text)
2023-10-20 16:08 UTC, Stéphane Guillou (stragu)
Details
Scenario2 (69.01 KB, image/png)
2023-10-28 21:05 UTC, bianca.chiorean
Details
Scenario3 (198.98 KB, image/png)
2023-10-28 21:06 UTC, bianca.chiorean
Details
Scenario4_ScreenRecording (6.18 MB, video/quicktime)
2023-10-28 21:07 UTC, bianca.chiorean
Details
Scenario4_1 (61.36 KB, image/png)
2023-10-28 21:07 UTC, bianca.chiorean
Details
Scenario4_2 (118.49 KB, image/png)
2023-10-28 21:08 UTC, bianca.chiorean
Details
Scenario6 (10.96 MB, video/quicktime)
2023-10-28 21:08 UTC, bianca.chiorean
Details
Scenario7 (317.11 KB, image/png)
2023-10-28 21:09 UTC, bianca.chiorean
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2023-10-20 16:08:09 UTC
Created attachment 190355 [details]
sample ODT

The bullet or numbering of a list inconsistently uses the formatting of an adjacent character depending on what is selected when the list is toggled.

Steps to reproduce:
1. Open Writer
2. Create 3 paragraphs with the same text in each one
3. Apply a font colour to all text (other than Automatic)
4. In 1st paragraph: place cursor anywhere in paragraph (no selection), then toggle ordered list
5. In 2nd paragraph: select part of the paragraph, then toggle ordered list
6. In 3rd paragraph: select the whole paragraph, then toggle ordered list

(Can also start at step 4 with example ODT.)

Result: the bullet / numbering only uses the character formatting of the adjacent text if there is an active text selection. Using ordered lists, it is also reproducible for italic or bold font effects.

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

Back in OOo 3.3, behaviour is a bit different: adjacent character formatting is used only when the _whole_ paragraph is selection.
Comment 1 Stéphane Guillou (stragu) 2023-10-20 16:14:04 UTC
...Expected results: adjacent character font effect (bold, italic, colour) is always used, just like when changing these font effects after the list is already toggled. I think this would be the least surprising.
Comment 2 Kira Tubo 2023-10-28 01:52:56 UTC
Reproduced. 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 676e0527d2f31556eccae314fbb12ce204f02ec7
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 3 bianca.chiorean 2023-10-28 20:58:17 UTC
Hello, I did some more investigating on the reported bug that might help in fixing it. The testing was done on the following configuration:

Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 8; OS: Mac OS X 14.0; UI render: default; VCL: osx
Locale: en-US (en_RO.UTF-8); UI: en-US
Calc: threaded

Scenario 1
     Steps: Test the same set of steps listed by the reporter on MacOS
     Result: The bug is reproducible on MacOS as well
Scenario 2
     Steps:
       1.Add 3 paragraphs in an empty Writer document 
       2.Change the Font Name for all of them
       3.In the 1st paragraph: Place cursor anywhere in paragraph (no selection), 
          then toggle ordered list
       4.In 2nd paragraph: select part of the paragraph, then toggle ordered list
       5.In 3rd paragraph: select the whole paragraph, then toggle ordered list
     Result: The numbering only uses the character formatting of the adjacent text 
             if there is an active text selection. (screenshot attached)
Scenario 3
     Steps:
      1.Add 3 paragraphs in an empty Writer document 
      2.Apply Strikethrough from the toolbar to all of the paragraphs 
      3.In the 1st paragraph: Place cursor anywhere in paragraph (no selection), 
          then toggle ordered list
      4.In 2nd paragraph: select part of the paragraph, then toggle ordered list
      5.In 3rd paragraph: select the whole paragraph, then toggle ordered list
     Result: The numbering/bullets only uses the character formatting of the 
        adjacent text if there is an active text selection (screenshot attached)

Scenario 4
     Steps:
      1.Add 1 paragraph in an Empty Writer document
      2.Apply character formatting (e.g color the text in red)
      3.Place cursor anywhere in paragraph (no selection), then toggle ordered 
       list
      4.Move to a new row by pressing Enter key
      5.Observe the numbering have the correct formatting (the numbering in the 
       second row is colored in red) (screenshot attached)
      6.Start typing something on the second row
      7.Observe the numbering is changing the formatting (the numbering color is 
         changed to black) (screenshot attached)
     Result: Inconsistent behavior of the numbering/bullets character formatting 
       when moving to a new row 
     Side Note: If on Step 6 instead of typing, the user taps on the ‘Backspace’ 
       key, the cursor moves back to the first row and the color of the numbering 
       turns red (screen recording attached)
Scenario 5
     Steps:
      1.Add 1 paragraph in an Empty Writer document
      2.Apply more than 1 formatting options (example: bold + italic at the same 
       time)
      3.In the 1st paragraph: Place cursor anywhere in paragraph (no selection), 
        then toggle ordered list
      4.In 2nd paragraph: select part of the paragraph, then toggle ordered list
      5.In 3rd paragraph: select the whole paragraph, then toggle ordered list
     Result: Same result as written by the reporter

Scenario 6 
     Steps:
      1.Add 1 paragraph in an Empty Writer document
      2.Apply character formatting (e.g color the text in red)
      3.Place cursor anywhere in paragraph (no selection), then toggle ordered 
       list
      4.CTRL+Z
      5.Select the whole paragraph, then toggle ordered list again
     Result: The numbering/bullets it’s not using anymore the character formatting 
        of the adjacent text even if there is an active text selection (screen 
        recording attached)
Scenario 7 
     Steps:
      1.Add 1 multiple rows paragraph in an Empty Writer document
      2.Apply character formatting (e.g color the text in red)
      3.Place cursor anywhere in paragraph (no selection), then toggle ordered 
         list
      Result: Same result as written by the reporter. The fact that the paragraph 
       is multiple row doesn’t affect the result

Scenario 8
     Reproduced the reporter’s steps on Google Docs
     Result:  The numbering/bullets it’s using the character formatting of the 
        adjacent text for all of the 3 paragraphs 

Hope these are helpful and please let me know if anything needs clarifications
Comment 4 bianca.chiorean 2023-10-28 21:05:56 UTC
Created attachment 190478 [details]
Scenario2
Comment 5 bianca.chiorean 2023-10-28 21:06:23 UTC
Created attachment 190479 [details]
Scenario3
Comment 6 bianca.chiorean 2023-10-28 21:07:23 UTC
Created attachment 190480 [details]
Scenario4_ScreenRecording
Comment 7 bianca.chiorean 2023-10-28 21:07:42 UTC
Created attachment 190481 [details]
Scenario4_1
Comment 8 bianca.chiorean 2023-10-28 21:08:13 UTC
Created attachment 190482 [details]
Scenario4_2
Comment 9 bianca.chiorean 2023-10-28 21:08:45 UTC
Created attachment 190483 [details]
Scenario6
Comment 10 bianca.chiorean 2023-10-28 21:09:13 UTC
Created attachment 190484 [details]
Scenario7