Bug 159972 - LO 7.6 Creates Duplicate / Unwanted Paragraph Direct Formatting
Summary: LO 7.6 Creates Duplicate / Unwanted Paragraph Direct Formatting
Status: RESOLVED DUPLICATE of bug 159366
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-29 19:45 UTC by bugzilla
Modified: 2024-03-08 02:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla 2024-02-29 19:45:00 UTC
Description:
This issue affects all LO 7.6 Writer Paragraph styles associated with a List style.

The Paragraph Direct Formatting that is created, is a duplicate of the List style already specified in the Paragraph style e.g 'Numbering ABC' and can be observed via Style Manager.  It causes problems when applying another style to affected text e.g. applying 'Body Text' changes the base Paragraph style but the List style remains. It breaks the concept of using Styles to quickly alter document formatting.

Steps to Reproduce:
1. In Writer LO 7.6 create a document with samples of text with a couple of Paragraph styles associated with different List Styles via: 
Edit style > Outline & List tab > Apply List Style= e.g. 'Numbering ABC'
2. Repeat in LO 7.3
3. Compare the results using Style Inspector.

Actual Results:
- Writer documents created, edited and viewed under LO 7.3 are OK with no Paragraph Direct Formatting.

- A previously 'good' LO 7.3 document is 'corrupted' if opened then saved in LO 7.6 i.e. when reopened in LO 7.3 Paragraph Direct Formatting duplication is now present and embedded.

- Documents opened under LO 7.6 exhibit duplicate Paragraph Direct Formatting for all Paragraph styles associated with a List style.

- New Paragraph styles created in LO 7.6 are OK until the document is saved/reloaded at which point the duplication is embedded.

- Paragraph styles used in 'Heading Numbering' e.g Heading 1, 2, 3 etc. do not exhibit this problem. 

- I'm told LO 7.5 is also OK but haven't been able to verify this.

Expected Results:
LO 7.6 Paragraph Styles created as described should not contain any Paragraph Direct Formatting.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I've created two demo documents to illustrate the issue, but it is easily replicated from scratch.

https://mega.nz/file/F7gTECAY#VVTviAmuCYzg4GI7s1j795yV6I77jGqzE4_X0hFP94c

https://mega.nz/file/c2BniIbb#oiRda6uFqRT1-7CRoLrCHr7CBPJJLClyH8kXwkH8HzI
Comment 1 bugzilla 2024-03-01 17:49:32 UTC
Additional observations are:

1) Another adverse consequence of this bug is the potential loss of List levels. For example: 
'Find and Replace' (Ctrl+H) > Other options > enable Paragraph Styles, then e.g.  Find= 'List 1' Replace= 'List 2' paragraph styles.

The result under LO 7.6 (as before) is a change of the underlying style to 'List 2' but the numbering style of 'List 1' being retained. However all List levels are changed to level one.  For example: A., A.1, A.1.a. become A., A., A. thus losing important document formatting.

LO 7.3 changes Paragraph style correctly and retains the original list Level values.


2) To aid the identification in LO 7.6 of paragraphs containing Paragraph Direct Formatting, enable the Spotlight function: 
Show Side Menu (F11) > select Styles button (Alt+2) > select Paragraph Styles tab > enable Spotlight.

Diagonal background hatching (instead of solid) identifies the paragraphs containing Direct Formatting making them easier to spot.
Comment 2 bugzilla 2024-03-02 17:04:35 UTC
I've tested various LO AppImage versions for this issue and test results as follows:

VERSION    RESULT   DATE RLSE
--------   ------   ---------
7.3.7.2     OK       03Nov22
7.4.7.2     OK       11May23
7.5.9.2     OK       07Dec23
7.6.0.3     Bug      21Aug23
7.6.5.2     Bug      22Feb24 (current Stable)
24.2.0.3    Bug      31Jan24
24.2.1.2    Bug      29Feb24 (current Fresh)
Comment 3 bugzilla 2024-03-06 12:06:07 UTC
I've been alerted to Bug 159366 which was raised about 1 month before this one. I believe it describes the same root problem, therefore this report could be considered a Duplicate of it.
Comment 4 Stéphane Guillou (stragu) 2024-03-08 02:33:02 UTC
Thank you for the report.
Indeed, let's mark as duplicate.

*** This bug has been marked as a duplicate of bug 159366 ***