Bug 160239 - Coloring text in a list can change its alignment
Summary: Coloring text in a list can change its alignment
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: MSO-Formats
  Show dependency treegraph
 
Reported: 2024-03-17 07:38 UTC by thjl
Modified: 2024-03-18 15:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
original list with two items and each changed by coloring (10.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-17 07:38 UTC, thjl
Details
changed list items after coloring (10.39 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-03-17 12:38 UTC, thjl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thjl 2024-03-17 07:38:48 UTC
Created attachment 193155 [details]
original list with two items and each changed by coloring

Changing the (background) color of a text in a list can change the alignment of the text.
Comment 1 V Stuart Foote 2024-03-17 12:11:50 UTC
Can't confirm. Changing Highlighting via the Character... dialog or the Standard TB button, nor if removing the DF and adjusting the List style.

Alignment remains, though the original list does have mixed font size (11pt Calibri from style for the leading Tab, with 8pt Calibri DF for the text entry).

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 2 thjl 2024-03-17 12:38:22 UTC
Created attachment 193162 [details]
changed list items after coloring
Comment 3 thjl 2024-03-17 12:40:42 UTC
I uploaded the file test2 with 2 unchanged lines in the list. Then duplicated these two lines twice and coloured them. The font and size remains Calibri  8pt but the lines changed the alignment or the distance between the lines increased.
Comment 4 thjl 2024-03-18 07:38:28 UTC
I have now tested other formatting in the test2 file by duplicating a line, double-clicking on the text and making it bold, underlined, italicized and strikethrough, all of which have the same effect. Double clicking on a changed line shows a larger field than the original.
Comment 5 thjl 2024-03-18 07:43:16 UTC
And a further test shows that this only happens if the entire line is formatted. Formatting just one word in a line of the list works as expected.
Comment 6 V Stuart Foote 2024-03-18 15:15:29 UTC
Using the main menu Format -> Spotlight to show PS, CS and Direct formatting:

All paragraphs are assigned PS of "List Paragraph", and List Style of "WWNum1". 
Both with font of Calibri 11 pt, the List Style from the CS "ListLabel 1". 
With an added 0.11" below paragraph spacing as added to the List Paragraph.

However, all the list elements were entered with text Direct Formatting at 8pt.

See the shift in between the last two list elements, but to me it looks like the pasted list element with color background character fill (highlight mode option is off) are picking up the WWNum1 List style with its "ListLabel 1" size of 11pt (the Hyphen (U+002D) is larger) which causes the shift. Although could also have the "List Paragraph" style below paragraph spacing assert as well.

I guess there could be an issue with ww8 filter reimport mishandling DF and one of the styles, as this *is* a round trip from OOXML Word 2010 format.

Setting => NEW

@Miklos, Mike?