Bug 156973 - Extend the "Clean Direct Formatting" command to clean direct list
Summary: Extend the "Clean Direct Formatting" command to clean direct list
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Clear-Formatting
  Show dependency treegraph
 
Reported: 2023-08-28 15:16 UTC by Olivier Hallot
Modified: 2023-08-30 18:22 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
List issues in direct formatting (120.09 KB, image/png)
2023-08-28 15:16 UTC, Olivier Hallot
Details
Source file with issue (2.26 MB, application/vnd.oasis.opendocument.text)
2023-08-29 10:04 UTC, Olivier Hallot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2023-08-28 15:16:29 UTC
Created attachment 189203 [details]
List issues in direct formatting

The remarkable spotlight features introduced in Writer 7.6 (kudos to Jim Raykowsky) is very handy to help in spotting direct format issues, even those issues not covered by the "Clean Direct Formatting" (Ctrl+M) command, which applies only to character formatting.

The image atached shows the issue with lists (taken from the file WG7617-Fields.odt)

* The first and second paragraphs of the list (1 and 2) were cleaned.

* The second an other list entries has direct formatting issues, indicated by the hash in the spotlight indicator and a different indent of the paragraph, even when the paragraph style is the same (#67).

The direct formatting is actually a list applied on top of the "Numbering 1" paragraph style (#67) which has its own list associated ("Numbering 1" homonym). 

To clean the list DF, I had to place cursor on the list and the cycle-click on the corresponding list icon on the top toolbar until the paragraph extra list is removed. 

Object:

Extend the "Clean Direct Formatting" command (swriter/.uno:ResetAttributes) to clean lists as well.

By removing the extra list on top of a paragraph with list style
By saving the paragraph list number if the list is restarted at this location.
Comment 1 Heiko Tietze 2023-08-29 08:41:53 UTC
(In reply to Olivier Hallot from comment #0)
> taken from the file WG7617-Fields.odt
Where can I find this document?
Comment 2 Olivier Hallot 2023-08-29 10:04:38 UTC
Created attachment 189224 [details]
Source file with issue
Comment 3 Heiko Tietze 2023-08-29 12:14:52 UTC
The list labels (1. 2. 3. or 1) 2) 3) etc.) are always applied (or acknowledged) as CDF. Happens also for new documents.

Mike, are List Id and List Label String CDF or just a variable attribute of the paragraph? And in any case, can we suppress the false attribution on the highlighting, Jim?
Comment 4 Mike Kaganski 2023-08-29 13:08:53 UTC
(In reply to Heiko Tietze from comment #3)
> Mike, are List Id and List Label String CDF or just a variable attribute of
> the paragraph?

Of the paragraph. Showing as character formatting is a bug.
Comment 5 Olivier Hallot 2023-08-29 13:17:32 UTC
I just discovered that when you clean the lists (bullet or numbers) so no hashed color on the paragraph style, then on saving and reloading the document the hash is back.
Comment 6 Heiko Tietze 2023-08-29 13:27:07 UTC
So bug, no UX needed.