Bug 165388 - FILEOPEN RTF/DOCX Paragraph with hidden linebreaks: hiding formatting marks also hides tab and spacing after
Summary: FILEOPEN RTF/DOCX Paragraph with hidden linebreaks: hiding formatting marks a...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0
Keywords:
Depends on:
Blocks: DOCX-Paragraph RTF-Paragraph
  Show dependency treegraph
 
Reported: 2025-02-22 12:03 UTC by Gabor Kelemen (allotropia)
Modified: 2025-02-22 15:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (47.40 KB, application/rtf)
2025-02-22 12:03 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word and Writer with visible formatting marks - good (85.86 KB, image/png)
2025-02-22 12:04 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word and Writer with hidden formatting marks - bad (56.04 KB, image/png)
2025-02-22 12:06 UTC, Gabor Kelemen (allotropia)
Details
The example file saved as docx in Word 2016 (14.96 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-22 12: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) 2025-02-22 12:03:52 UTC
Created attachment 199377 [details]
Example file from Word 2016

Attached example file has some hidden line breaks.
When the formatting marks are hidden, the tab spacing is also hidden and the spacing after the paragraph is also hidden, changing layout substantially.

1. Open attached file
2. In the Options - Writer - Formatting Aids tab, check the Hidden Characters box
3. Show/Hide the formatting marks
-> the xxx on the right side jumps next to the left side and the paragraph below jumps up as the spacing after the first paragraph gets ignored.

Also happens in the rtf/docx version of the file.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b4059c4b9ae2230d9c6d722d457dca2216ddd581
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Seems to have started in 7.6 with:
https://git.libreoffice.org/core/+/2bcfb7231b5ca74f02274cfb74ca8463f78905d6%5E%21

author	Michael Stahl <michael.stahl@allotropia.de>	Fri Jan 06 19:07:35 2023 +0100
committer	Michael Stahl <michael.stahl@allotropia.de>	Tue Jan 10 15:44:27 2023 +0000

tdf#152872 sw: conditionally hide paragraph breaks
Comment 1 Gabor Kelemen (allotropia) 2025-02-22 12:04:16 UTC
Created attachment 199378 [details]
The example file in Word and Writer with visible formatting marks - good
Comment 2 Gabor Kelemen (allotropia) 2025-02-22 12:06:35 UTC
Created attachment 199379 [details]
The example file in Word and Writer with hidden formatting marks - bad
Comment 3 Gabor Kelemen (allotropia) 2025-02-22 12:08:13 UTC
Created attachment 199380 [details]
The example file saved as  docx in Word 2016
Comment 4 Gabor Kelemen (allotropia) 2025-02-22 14:25:06 UTC
This was fixed in the meantime by:

https://git.libreoffice.org/core/+/8712673a445edeb28a5f3029bbcaa096f38d72e6%5E%21

author	Michael Stahl <michael.stahl@allotropia.de>	Wed Feb 19 16:25:35 2025 +0100
committer	Michael Stahl <michael.stahl@allotropia.de>	Thu Feb 20 17:27:12 2025 +0100
tree 220244cd8f170bca3c3d0bf34367a726de4d186e
parent c42af7177292011d313188be547f65058a9949c6 [diff]

sw: use same paragraph properties as Word for hidden text

Tested in a local custom build:
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 342613810cf22fe3855b5cee12a0c6933fb18ce9
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded