Bug 158658

Summary: FILEOPEN DOCX/DOC/RTF Tabs closing header paragraph are wrapped and not flowing outside the page area
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: dgp-mail
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=142404
https://bugs.documentfoundation.org/show_bug.cgi?id=158659
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104522, 112702, 113423, 131304    
Attachments: Example file from Word 2010
The same example in RTF format
The docx and rtf files in Word 2016 and Writer
The example file converted to compatibilityMode 15 in Word 2016
The C15 docx and the same file in doc format in Word 2016 and Writer

Description Gabor Kelemen (allotropia) 2023-12-12 11:04:48 UTC
Created attachment 191377 [details]
Example file from Word 2010

Attached docx file contains several tabs in the header at the end of the paragraph.
In Word these are not wrapped in case of RTF and DOCX < compatibilityMode 15, but in Writer they are, and this makes the header a lot taller than in Word.
In DOCX compatibilityMode 15 the rendering of Writer and Word matches, also since 3.3 - so probably it was not "fixed ~recently" but Word started to match Writers (sane) behavior.

1. Open the attached DOCX and RTF files
-> headers text is wrapped into multiple lines, but they should flow out of the pages right margin

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 0ddd9f7e055a0c1ecb120de3e40c3fdb8373e9dc
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

and all the way back to 3.3
Comment 1 Gabor Kelemen (allotropia) 2023-12-12 11:05:27 UTC
Created attachment 191378 [details]
The same example in RTF format
Comment 2 Gabor Kelemen (allotropia) 2023-12-12 11:06:01 UTC
Created attachment 191379 [details]
The docx and rtf files in Word 2016 and Writer
Comment 3 Gabor Kelemen (allotropia) 2023-12-12 11:06:46 UTC
Created attachment 191380 [details]
The example file converted to compatibilityMode 15 in Word 2016
Comment 4 Gabor Kelemen (allotropia) 2023-12-12 11:08:22 UTC
Created attachment 191381 [details]
The C15 docx and the same file in doc format in Word 2016 and Writer

C15 DOCX is good, and doc is a bit differently bad -> another report.
Comment 5 Dieter 2023-12-27 11:29:03 UTC
I confirm it with

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 40617d867346956588ac023511f31210107217f4
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded