Bug 153193 - FILEOPEN RTF Table layout falls apart after showing/hiding formatting marks
Summary: FILEOPEN RTF Table layout falls apart after showing/hiding formatting marks
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF Formatting-Mark RTF-Tables
  Show dependency treegraph
 
Reported: 2023-01-24 23:46 UTC by Gabor Kelemen (allotropia)
Modified: 2023-12-13 13:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (deleted)
2023-01-24 23:46 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word 2016 and Writer after opening (117.12 KB, image/png)
2023-01-24 23:49 UTC, Gabor Kelemen (allotropia)
Details
The example file in Writer after showing/hiding formatting marks (50.12 KB, image/png)
2023-01-24 23:50 UTC, Gabor Kelemen (allotropia)
Details
The example file in docx format, this one works in Writer (29.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-01-24 23:50 UTC, Gabor Kelemen (allotropia)
Details
Updated example file (225.55 KB, application/rtf)
2023-11-28 14:07 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-24 23:46:47 UTC
Created attachment 184886 [details]
Example file from Word 2016

Attached RTF example file has two tables and a lot of hidden paragraphs.
In Word this is laid out on two pages, and in Writer at opening time as well.
Showing formatting marks and hiding them makes the second table being laid out on two pages.

1. Open attached file in Writer. Make sure Options - Writer - Formatting Aids -> Hidden characters box is checked.
2. Press the Toggle Formatting marks button on the Standard bar.

-> Second table is now displayed on two pages instead of one.

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

Before 7.4 the hidden paragraphs were not collapsed, so the tables layout did not change. But this likely just uncovers something underlying.
Also if the original is saved to DOCX, that survives the formatting marks hiding in Writer.
Comment 1 Gabor Kelemen (allotropia) 2023-01-24 23:49:19 UTC
Created attachment 184887 [details]
The example file in Word 2016 and Writer after opening
Comment 2 Gabor Kelemen (allotropia) 2023-01-24 23:50:13 UTC
Created attachment 184888 [details]
The example file in Writer after showing/hiding formatting marks
Comment 3 Gabor Kelemen (allotropia) 2023-01-24 23:50:41 UTC
Created attachment 184889 [details]
The example file in docx format, this one works in Writer
Comment 4 Stéphane Guillou (stragu) 2023-01-25 21:37:15 UTC
Reproduced in:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e125e6623fa1c0f39d927bb37547ca6d1e299cb1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 5 Gabor Kelemen (allotropia) 2023-11-28 14:07:21 UTC
Created attachment 191094 [details]
Updated example file
Comment 6 Xisco Faulí 2023-11-29 13:20:59 UTC
The content of attachment 184886 [details] has been deleted for the following reason:

User's request