Bug 152784 - FILEOPEN RTF Numbering from style, disabled with DF is still visible in Writer
Summary: FILEOPEN RTF Numbering from style, disabled with DF is still visible in Writer
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Vasily Melenchuk (CIB)
URL:
Whiteboard: target:7.6.0 target:7.5.0.2
Keywords:
Depends on:
Blocks: RTF-Bullet-Number-Lists
  Show dependency treegraph
 
Reported: 2023-01-01 14:29 UTC by Gabor Kelemen (allotropia)
Modified: 2023-12-19 08:25 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (deleted)
2023-01-01 14:29 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word 2016 and Writer (155.39 KB, image/png)
2023-01-01 14:29 UTC, Gabor Kelemen (allotropia)
Details
Updated example file (59.33 KB, application/rtf)
2023-11-28 13:44 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-01-01 14:29:15 UTC
Created attachment 184419 [details]
Example file from Word 2016

Attached example file has numbering defined in the Heading 3 style, applied to all paragraphs.
Some paragraphs have this disabled with direct formatting in Word, but they appear with the numbering in Writer.

1, Open attached file
2, Notice the first paragraph containing A is numbered, fourth and fifth paragraphs that start with 3 and 4 are also numbered, unlike in Word.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 44355a90b3450111ad87ad4b6607a564e41d7b54
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded

and older versions back to 4.3, before that it was differently bad: numbering was missing entirely back to 4.0, and in 3.6 only two of the three paragraphs were numbered.
Comment 1 Gabor Kelemen (allotropia) 2023-01-01 14:29:53 UTC
Created attachment 184420 [details]
The example file in Word 2016 and Writer
Comment 2 Commit Notification 2023-01-06 14:47:40 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e8d18b471ea5063bc0b2c94afc1b94017e8e66bc

tdf#152784: RTF import: more default paragraph params

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Vasily Melenchuk (CIB) 2023-01-06 17:18:19 UTC
Fix is done.
However, clean up for extra numbering did reveal another problem so there is a paragraph with lost numbering. This is happening due to another hidden before problem. 

It is reported separately as tdf#152899
Comment 4 Commit Notification 2023-01-10 07:15:09 UTC
Vasily Melenchuk committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

https://git.libreoffice.org/core/commit/588ff9a228f4894142264c68392ed1e9800a4d7d

tdf#152784: RTF import: more default paragraph params

It will be available in 7.5.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Gabor Kelemen (allotropia) 2023-01-15 23:03:44 UTC
Verified in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 37e3455a13ab5741104bf41d05a80e60a4612682
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded

Now extra numbering does not appear for the first and fourth and fifth paragraphs.
Side effect is that the numbering disappeared from the second paragraph, which should be covered by bug 152899.
Comment 6 Gabor Kelemen (allotropia) 2023-11-28 13:44:57 UTC
Created attachment 191083 [details]
Updated example file
Comment 7 Xisco Faulí 2023-11-29 13:19:21 UTC
The content of attachment 184419 [details] has been deleted for the following reason:

User's request