Bug 152899 - FILEOPEN RTF Paragraph properties are ignored after content start
Summary: FILEOPEN RTF Paragraph properties are ignored after content start
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.5.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Bullet-Number-Lists
  Show dependency treegraph
 
Reported: 2023-01-06 09:04 UTC by Vasily Melenchuk (CIB)
Modified: 2023-01-15 23:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Minimized RTF example (364 bytes, application/msword)
2023-01-06 09:04 UTC, Vasily Melenchuk (CIB)
Details
The example file in Word 2016 and Writer (189.53 KB, image/png)
2023-01-06 10:58 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vasily Melenchuk (CIB) 2023-01-06 09:04:42 UTC
Created attachment 184505 [details]
Minimized RTF example

LibreOffice RTF filter has important parsing issue: once paragraph content is started following paragraph properties are ignored and not taken into account.

However properties until \par should be used.

See attached minimized example:
* First paragraph contain numbering and border definitions after all content but before paragraph end. Both paragraph border and numbering should be applied.
* Second paragraph has a bookmark, same border and list definition, text content. Same story as in previous case: numbering and border are ignored.

LO 3.3.0 was (almost) good here, but 3.5.5 is already broken. Verified LO vs MS Word 365.
Comment 1 Gabor Kelemen (allotropia) 2023-01-06 10:58:42 UTC
Created attachment 184507 [details]
The example file in Word 2016 and Writer
Comment 2 Gabor Kelemen (allotropia) 2023-01-06 11:00:12 UTC
Confirming in 

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 it's broken all the way back to 3.5