Bug 151489 - page line-spacing: space above / below paragraph doesn't work when page-line-spacing is ON
Summary: page line-spacing: space above / below paragraph doesn't work when page-line-...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-12 12:19 UTC by peter josvai
Modified: 2022-10-13 15:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
two paragraphs of Text Body with page style "register true" 'Activate page line-spacing' (31.97 KB, application/vnd.oasis.opendocument.text)
2022-10-13 14:29 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description peter josvai 2022-10-12 12:19:19 UTC
hi,


again, this is an experimental field for me, so I'm not sure, 
BUT..

normally, setting a vertical distance, some "space" above / below the paragraphs of a paragraph style works as expected: 

     now it is 0.25 cm
I change it to 0.35 cm  and voila, the space has grown!
I change it to 0.15 cm and reverse-voila, the space has shrunk! :)


BUT when the page-line-spacing is ON (both in the page style and in the paragraph's), whatever I do to the space below / above the paragraph IN THE TEMPLATE's Text Body style, 

no change...


no change, except when I change the value to 0.00

then it will change, there will be no additional space between the paragraphs...

but when I change it back to any value, it will look like before...


NOTE: the option "don't add space between the same style paragraphs" is NOT ACTIVE....
Comment 1 V Stuart Foote 2022-10-13 14:29:34 UTC
Created attachment 183016 [details]
two paragraphs of Text Body with page style "register true" 'Activate page line-spacing'

This is correct 'register true' behavior. The "reference" paragraph style is asserted on the page style (replacing the page's paragraph spacing if any set).

That reference is carried across all pages of the same style. And when a paragraph is set 'register true' via the Paragraph dialog's 'Indents & Spacing' tab 'Activate page line-spacing' checkbox -- the *line spacing* from the "reference" paragraph is used.  

The 'register true' vertical spacing "grid" is calculated against the font metric, internal leading, and external leading defined in the paragraph style used as the "reference".  It is available for use on all pages of the same style, and will assert for each paragraph on that page with the 'Activate page line-spacing' is activated.

The attached Flat ODF has two DT paragraphs in 'Text Body' defaults, with a 'register true' reference set for Page style in a new Paragraph style "TwoLineSpaceRef" with 200% double line height drawing font metrics from Libertinus Sans font.
Comment 2 V Stuart Foote 2022-10-13 15:28:22 UTC
Going to set this => NAB