Bug 141288 - "page break before" of hidden paragraph is shown
Summary: "page break before" of hidden paragraph is shown
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Paragraph Writer-Page-Break
  Show dependency treegraph
Reported: 2021-03-27 16:06 UTC by Sven
Modified: 2022-02-28 14:27 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

test document (9.94 KB, application/vnd.oasis.opendocument.text)
2021-03-27 16:06 UTC, Sven
Another test document (16.50 KB, application/vnd.oasis.opendocument.text)
2021-04-20 13:21 UTC, Heiko Tietze

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 2021-03-27 16:06:17 UTC
Created attachment 170787 [details]
test document


when a paragraph is invisible because it has a hidden paragraph textfield (com.sun.star.text.textfield.HiddenParagraph) with condition "TRUE" the style property "page break before" is shown. To my mind the page break should not be shown if the paragraph is hidden.

See attatched file

Sometimes I habe the behaviour with margins to the top or bottm. The hidden paragraph has got a margin and the margin will be shown. Repainting the document (2 times ctrl + F9) will help and the margin won't be shown. Unfortunately this problem is not reproduceable.
Comment 1 Dieter 2021-04-11 04:22:22 UTC
Thank you for reporting the bug. When I open your document, the paragraph with page break before is visible.

I've tried to reproduce your problem as follows:
1. Change paragraph style of first paragraph of second page
2. Modify that paragraph style: In tab "Font Effect" select "Hidden"

Actual result: Paragraph is hidden, but page break is still there

Does this desribe your problem?  If not, please add some steps to reproduce.
Comment 2 Sven 2021-04-12 05:51:46 UTC
Hello Dieter,

thank you for your reply and sorry for my worse english.

I forgot to say that you have to set the setting .uno:HiddenParagraph to "false" because it's my default settings. You can change this in the settings in "Extras - Optionen - LibreOffice Writer: Ansicht - Felder anzeigen: Vervorgene Absätze" (I don't know the english menu structure).

Although the paragraph is hidden the page break is shown. You don't have to change anything on the document. When I change the font effect of the first paragraph on 2nd page to "Hidden" the paragraph will completely not shown but the page break is already visible.

In my opinion the page break should not be visible because it is anchored on a paragraph which is hidden. When a paragraph is hidden all of it's properties should be removed/neutralized. Only for the display the text:p and it's style should be removed.

For native german speaking people the same text for better understanding:
Sorry, ich habe vergessen zu sagen, dass die Einstellung "Versteckte Absätze anzeigen" deaktiviert sein muss. Da es meine Standardeinstellung ist habe ich daran nicht mehr gedacht. Der Absatz an dem der Seitenumbruch verankert ist, wird durch das Textfeld "versteckter Absatz" ausgeblendet. Dementsprechend sollte auch der Seitenumbruch und alle anderen Formate des ausgeblendeten Absatzes neutralisiert werden. Für die Anzeige müsste so getan werden als ob das text:p und dessen Style nicht existieren würden.
Comment 3 QA Administrators 2021-04-13 03:40:48 UTC Comment hidden (obsolete)
Comment 4 Dieter 2021-04-17 15:59:53 UTC
Sven, thanks for clarification. So I think the problem can be reduced to the question: Should a page break also be hidden, if it belongs to a hidden paragraph?
I give that question to the design team.
Comment 5 Heiko Tietze 2021-04-20 13:21:05 UTC
Created attachment 171315 [details]
Another test document

Couldn't follow your example at the first go, so I created a new one. Hide the first paragraph per Hide = TRUE or FALSE, in any case the paragraph style "Hidden Paragraph" with a page break before will be applied. Added another case for "Hidden Characters" (font effects: hidden) at page #3.

My take: page break before or after a hidden paragraph should be hidden. This allows also for much more complex layouts.

MSO shows hidden text with a dotted underline. I'm not aware of a function that hides a paragraph.
Comment 6 Heiko Tietze 2022-02-28 14:27:57 UTC Comment hidden (off-topic)