Bug 158658 - FILEOPEN DOCX/DOC/RTF Tabs closing header paragraph are wrapped and not flowing outside the page area
Summary: FILEOPEN DOCX/DOC/RTF Tabs closing header paragraph are wrapped and not flowi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Header-Footer DOC-Header-Footer RTF-Header-Footer DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2023-12-12 11:04 UTC by Gabor Kelemen (allotropia)
Modified: 2023-12-28 03:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2010 (14.56 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-12-12 11:04 UTC, Gabor Kelemen (allotropia)
Details
The same example in RTF format (33.75 KB, application/msword)
2023-12-12 11:05 UTC, Gabor Kelemen (allotropia)
Details
The docx and rtf files in Word 2016 and Writer (103.11 KB, image/png)
2023-12-12 11:06 UTC, Gabor Kelemen (allotropia)
Details
The example file converted to compatibilityMode 15 in Word 2016 (16.14 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-12-12 11:06 UTC, Gabor Kelemen (allotropia)
Details
The C15 docx and the same file in doc format in Word 2016 and Writer (114.86 KB, image/png)
2023-12-12 11:08 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-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