Bug 164800 - FILEOPEN DOC: hidden, empty paragraph now visible
Summary: FILEOPEN DOC: hidden, empty paragraph now visible
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.3.2 release
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOC-Paragraph
  Show dependency treegraph
 
Reported: 2025-01-22 19:17 UTC by Justin L
Modified: 2025-01-25 17:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
ooo104638-1.doc: 4 empty line gap showing on first page in between lines of "Text" (288.00 KB, application/msword)
2025-01-22 19:17 UTC, Justin L
Details
164800_abi6408.zip: doc, PDF, and visual change. RES=25.2 master, BLUE=25.2 oldest, grayscale=Word2019 (190.15 KB, application/zip)
2025-01-23 14:24 UTC, Justin L
Details
kde143030-1B.doc: a minimized version of an example bug I saw (32.50 KB, application/msword)
2025-01-25 17:52 UTC, Justin L
Details
abi6637-1.doc: another clear example where a hidden paragraph between table rows is now showing (64.00 KB, application/msword)
2025-01-25 17:55 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2025-01-22 19:17:56 UTC
Created attachment 198679 [details]
ooo104638-1.doc: 4 empty line gap showing on first page in between lines of "Text"

I'm seeing supposed-to-be-hidden empty paragraphs in many example DOC files. Another clear example is Test.doc (attachment 136513 [details] from bug 112616), which has line numbering turned on - easy to visually see the problem there too.

Note: to see hidden text, turn on Tools - Options - Writer - Formatting Aids - Display Formatting: Hidden characters.  Then Ctrl-F10 (View - Formatting Marks)

Steps to reproduce:
-open ooo54439-2.doc

Notice the 4 line gap. View Formatting Marks reveals "Start of hidden text" and "End of hidden text".

This started in 25.2 (and backported to 24.8.3)
with commit 7b8cec8322b60673e686660caf875bc71117bbd0
Author: Michael Stahl on Date:   Tue Sep 24 19:06:55 2024 +0200
    tdf#162268 sw: ApplyParagraphMarkFormatToEmptyLineAtEndOfParagraph

https://gerrit.libreoffice.org/c/core/+/173880

I thought perhaps it might be side-effect fallout related to META bug 125905, but when I tried to quickly revert caolan's commit it didn't help.

Many more examples could be provided.
Found by Collabora's mso-test
Comment 1 Justin L 2025-01-23 14:24:58 UTC
Created attachment 198699 [details]
164800_abi6408.zip: doc, PDF, and visual change. RES=25.2 master, BLUE=25.2 oldest, grayscale=Word2019

This is an interesting example. In some ways mstahl's commit improved things by adding space, but too much space has been added.  Specifically noticed points 1 and 4 (and 10).
Comment 2 Justin L 2025-01-25 17:52:29 UTC
Created attachment 198761 [details]
kde143030-1B.doc: a minimized version of an example bug I saw

There are dozens, if not hundreds of additional examples I could provide. Some, like a page of labels now followed by an empty page, seem to come from a common template. They are often seen before or after a table.
Comment 3 Justin L 2025-01-25 17:55:05 UTC
Created attachment 198762 [details]
abi6637-1.doc: another clear example where a hidden paragraph between table rows is now showing