Bug 152841 - FILEOPEN RTF/DOCX Paragraph height is defined by hidden characters even in Print mode
Summary: FILEOPEN RTF/DOCX Paragraph height is defined by hidden characters even in Pr...
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: filter:docx, filter:rtf
Depends on:
Blocks: RTF-Paragraph
  Show dependency treegraph
 
Reported: 2023-01-02 14:38 UTC by Gabor Kelemen (allotropia)
Modified: 2024-01-17 17:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (deleted)
2023-01-02 14:38 UTC, Gabor Kelemen (allotropia)
Details
Formatting marks visible (146.17 KB, image/png)
2023-01-25 07:28 UTC, Gabor Kelemen (allotropia)
Details
Formatting marks hidden - table moves closer to border only in Word (118.69 KB, image/png)
2023-01-25 07:29 UTC, Gabor Kelemen (allotropia)
Details
Updated example file (49.16 KB, application/rtf)
2023-11-28 13:48 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-02 14:38:39 UTC
Created attachment 184450 [details]
Example file from Word 2016

This may or may not be the same as bug 137335 and may be boiling down to bug 127368 - but opening just in case RTF is different somewhat.

Attached file has a hidden character with char size 13 pt and a 1 pt char size CR in Word.
When the formatting marks, including hidden characters are hidden in Word, the table below the first paragraph jumps closer to the top of the page. This is because the row height is no longer defined the 13 pt tall hidden character, but the 1 pt CR mark.
In Writer the row height stays the same, thus changing the layout in print preview / actual print.
Also happens if the example document is saved to docx in Word.

1. Open attached document
2. In Options - Writer - Formatting Aids make sure the Hidden characters option is checked
3. Press the PI button on the Standard toolbar and notice the page layout does not change. 
In Word the table would jump closer to the top of the page.

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

Also in older versions to 3.5, this behaved always the same.
Comment 1 Dieter 2023-01-22 17:15:30 UTC
If "PI button on the Standard toolbar" ist the Print Preview button, I confirm the behaviour with

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

but I don't understand, why this is the wrong behaviour. If I hide the character, result is the same.
Comment 2 Gabor Kelemen (allotropia) 2023-01-25 07:28:23 UTC
Created attachment 184899 [details]
Formatting marks visible

Sorry, forgot the screenshots here.
Comment 3 Gabor Kelemen (allotropia) 2023-01-25 07:29:19 UTC
Created attachment 184900 [details]
Formatting marks hidden - table moves closer to border only in Word
Comment 4 Dieter 2023-02-01 16:18:17 UTC
(In reply to Gabor Kelemen (allotropia) from comment #3)
> Created attachment 184900 [details]
> Formatting marks hidden - table moves closer to border only in Word

Yes I understand, but I'm still not sure, that this is the expected behaviour. Think about 10 paragraphs with hidden chraracters. Layout would be changed totally, if it doesn't take into account "space" of hidden characters.
Comment 5 Gabor Kelemen (allotropia) 2023-11-28 13:48:04 UTC
Created attachment 191085 [details]
Updated example file
Comment 6 Xisco Faulí 2023-11-29 13:20:09 UTC
The content of attachment 184450 [details] has been deleted for the following reason:

User's request
Comment 7 Buovjaga 2024-01-17 17:15:45 UTC
Confirmed

Arch Linux 64-bit, X11
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 88a7384edcd8f4240a659f2c2c7c1258471341f4
CPU threads: 8; OS: Linux 6.7; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 17 January 2024