Bug 170000 - Page line-spacing is not applied properly on cloumns
Summary: Page line-spacing is not applied properly on cloumns
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.6.2 release
Hardware: All All
: medium normal
Assignee: Tamás Zolnai
URL:
Whiteboard: target:26.8.0
Keywords:
Depends on:
Blocks: Page-Layout-Columns
  Show dependency treegraph
 
Reported: 2025-12-16 11:44 UTC by Tamás Zolnai
Modified: 2026-02-04 15:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test document (33.73 KB, application/vnd.oasis.opendocument.text)
2025-12-16 11:46 UTC, Tamás Zolnai
Details
Screen recording showing the issue. (3.29 MB, video/mp4)
2025-12-16 11:47 UTC, Tamás Zolnai
Details
Screen shot of the issue with baseline grid shown (76.09 KB, image/png)
2025-12-16 11:51 UTC, Tamás Zolnai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tamás Zolnai 2025-12-16 11:44:01 UTC
Description:
LibreOffice has a feature called page line-spacing, which is expected to make all text follow an invisible grid.
See help description:
https://help.libreoffice.org/latest/en-US/text/swriter/guide/registertrue.html?DbPAR=WRITER

"The Reference Style sets an invisible vertical (typographical) grid, using the line distance specified in the style. All paragraphs that have Page line-spacing activated will use that line distance, aligning the bottom of a text line to the next grid line, regardless of font size or presence of graphics."

However, if I use a column section in a text document, the text in the column is not aligned with this invisible grid. The line distance inside the columns seems correct, but the offset of the text positioning seems off, and so the text baseline is different than expected.

Steps to Reproduce:
1. Open the attached test document in Writer
2. Switch to Multiple-page view so you can compare the two pages' text alignment.
3. Compare the baseline of the text inside the columns with the baseline of the text on the second page, next to the column.
-> Text's baseline inside the column is not aligned properly, compared to the text outside of the column.

Actual Results:
Text's baseline inside the columns is off compared to text alignment outside of the columns.

Expected Results:
Text's baseline inside the columns should be aligned with the invisible grid defined by page line-spacing.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.6.2 (X86_64) / LibreOffice Community
Build ID: 729c5bfe710f5eb71ed3bbde9e06a6065e9c6c5d
CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 1 Tamás Zolnai 2025-12-16 11:46:15 UTC
Created attachment 204671 [details]
Test document
Comment 2 Tamás Zolnai 2025-12-16 11:47:54 UTC
Created attachment 204672 [details]
Screen recording showing the issue.

On the screen recording, I used a small window as a ruler to show how the text baseline between the two pages are not aligned with each other.
Comment 3 Tamás Zolnai 2025-12-16 11:51:43 UTC
Created attachment 204673 [details]
Screen shot of the issue with baseline grid shown

In LibreOffice 26.8 (master, unreleased yet), there is a new Baseline Grid feature with which the page line-spacing's invisible grid can be displayed. With the grid visible, the issue is easier to see. The screenshot shows that the text inside the columns is not aligned properly with the displayed baseline grid, while the text outside the columns is aligned correctly.
Comment 4 Dieter 2026-01-01 20:39:10 UTC
I confirm it with

Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded
Comment 5 Commit Notification 2026-02-04 10:44:07 UTC
Tamás Zolnai committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2b47f4090df08fd70b6f51bafd11acc56b3998df

tdf#93785, tdf#170000: Fix page line-spacing formatting in sections and frames.

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.