Bug 98958 - "Hide Whitespace" changes pagination by adding the top and bottom margins to the editing area
Summary: "Hide Whitespace" changes pagination by adding the top and bottom margins to ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium minor
Assignee: Not Assigned
Depends on:
Reported: 2016-03-29 14:08 UTC by Simo Kaupinmäki
Modified: 2019-08-13 06:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Two screenshots compared (111.44 KB, image/png)
2016-03-29 14:12 UTC, Simo Kaupinmäki

Note You need to log in before you can comment on or make changes to this bug.
Description Simo Kaupinmäki 2016-03-29 14:08:02 UTC
"Hide Whitespace" alters the position of automatic page breaks in the text flow, affecting the pagination. Apparently, hiding the whitespace in normal-view mode makes Writer count the entire paper height as printable area. In effect, the top and bottom margins are added to the main editing area, rather than just hidden. This seemingly creates extra space on a page, which is then filled by the first few lines from the following page, and the effect accumulates on each subsequent page.

This issue looks similar to bug 94164 and bug 94165 but specifically concerns automatic page breaks and the top and bottom margins.

Steps to reproduce:

1. Disable "View → Hide Whitespace".

2. Add dummy text so that it exceeds one page. Take note of the text right before and after the automatic page break.

3. Enable "View → Hide Whitespace". The page break, as indicated by a thin horizontal line, is now positioned a little further down as compared to the text flow.

Automatic page breaks should stay constant in relation to the text, regardless of whether the whitespace between pages is hidden or not.

Found on Windows:

Build ID: 89f508ef3ecebd2cfb8e1def0f0ba9a803b88a6d
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: fi-FI (fi_FI)

Also found on Linux with LibO installed from Debian stable backports:

Build ID: 1:5.1.1-1~bpo8+1
CPU Threads: 1; OS Version: Linux 3.16; UI Render: default; 
Locale: fi-FI (fi_FI.utf8)
Comment 1 Simo Kaupinmäki 2016-03-29 14:12:50 UTC
Created attachment 123922 [details]
Two screenshots compared

The attachment is a combination of two screenshots. On the left, a document with "Hide Whitespace" disabled and the first line on both pages highlighted in red. On the right, the same document with "Hide Whitespace" enabled, allowing the text to flow uninterrupted. However, the position of the page break is still unchanged in relation to the paper height.
Comment 2 Buovjaga 2016-04-07 11:01:28 UTC

Win 7 Pro 64-bit Version:
Build ID: 7a7be32e5265f897174f3880adc061dac0203f1f
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-03-31_07:39:11
Locale: fi-FI (fi_FI)
Comment 3 QA Administrators 2017-05-22 13:19:29 UTC Comment hidden (obsolete)
Comment 4 Michal Suchánek 2018-11-01 22:20:52 UTC
On the page length increases when text is added after the last line on a (non-last) page while in hide whitespace mode.
Comment 5 DarkTrick 2019-08-13 06:01:19 UTC
Confirm @

This bug renders the function unusable for me.