Bug 75221

Summary: "Don't add space between paragraphs of the same style" also ignores line spacing
Product: LibreOffice Reporter: Marcos <marcosvoc>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: alex_polkovnik, cno
Version: 4.2.0.0.beta1   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Style with double spacing and "Don't add space between paragraphs of the same style"
How spacing between paragraphs shouls work when "Don't add space between paragraphs of the same style" is selected.

Description Marcos 2014-02-19 17:59:15 UTC
Created attachment 94375 [details]
Style with double spacing and "Don't add space between paragraphs of the same style"

When "Don't add space between paragraphs of the same style" is checked for a style and line spacing for that style is different from "simple", line spacing is ignored between the last line of a paragraph and the first line of next paragraph.
The result isn't coherent with the line spacing defined.
Comment 1 Cor Nouws 2014-02-19 18:19:16 UTC
Hi Marcos,

I cannot reproduce this in 4.2.1.1. Or in any case I do not understand it :)

Can you pls explain which marked distance in your attachment (thanks) is not OK, and should be what?

regards,
Cor
Comment 2 Marcos 2014-02-19 19:09:54 UTC
Created attachment 94378 [details]
How spacing between paragraphs shouls work when "Don't add space between paragraphs of the same style" is selected.
Comment 3 Marcos 2014-02-19 19:10:57 UTC
Hi, Cor.

In the attachment, the arrow that says "space between two paragraphs with style Citação" should be (I think) the same as two lines in those paragraphs. As you can see, line spacing in those paragraphs is Double but the spacing between two paragraphs ignores that.
The way I see it, it would make more sense if the spacing between those two lines that are close to each other was the same that the spacing between any two other lines.
In short, the space in the third arrow should be the same as the second arrow.
That would happen if the option "Don't add space between paragraphs of the same style", instead of remove ALL the spacing, used the default line spacing of that style (ignoring only "space before" and "space after").

Sorry if some of the terms aren't precise. I'm using a Portuguese version and I don't have access to an English one right now.

I have posted another image of how I think it should work so you can compare. Maybe it's a bug, maybe it works like that by design, maybe you can clarify.

Thanks!
Comment 4 Mike Kaganski 2014-04-11 15:12:05 UTC
Reproducible with 4.2.0.0.beta1 - 4.2.3.3 under Win7x64, 4.2.3.3 under Ubuntu 13.10 x64 -> NEW.

Steps to reproduce:
1. Create a new empty text document.
2. Write a paragraph several lines long.
3. Add several other paragraphs one line long.
4. Go to Styles and Formatting, Paragraph Styles, modify current paragraph style to have double line spacing and no spacing above or below the paragraph, and uncheck "Don't add space between paragraphs of the same style" (Idents and Spacing tab) -> OK.
5. See that all lines are spaced evenly.
6. Go to Styles and Formatting, Paragraph Styles, modify current paragraph style to check "Don't add space between paragraphs of the same style" and add some spacing above or below paragraph -> OK.

Expected result: the spacing between lines (of these same-style paragraphs) should stay equal regardless of if they are inside one paragraph or between same-style paragraphs, i.e. they should all be equal to Line Spacing setting.

Actual result: the spacing inside paragraph stays OK, while spacing between adjacent same-style paragraphs become single. This is absolutely inappropriate, because:
- the "Don't add space between paragraphs of the same style" checkbox is grouped with "Above/Below paragraph spacing" settings, and expected to affect only that behaviour;
- the help system further confirms this, saying "Makes any space specified before or after this paragraph not be applied when the preceding and following paragraphs are of the same paragraph style" (see https://help.libreoffice.org/swriter/cui/ui/paraindentspacing/spinED_LEFTINDENT?Language=en-US&System=WIN&Version=4.2#Don.27t_add_space_between_paragraphs_of_the_same_style);
- this wrong behaviour makes this option absolutely unusable in scenarios where non-single-line spacing is used. You just cannot make normal text body with double spacing to look OK when this checkbox is checked!

This is not a minor issue, as it makes this newly introduced feature barely usable. Thus restoring severity to NORMAL.
Comment 5 Bacco 2014-05-11 18:01:56 UTC
I can confirm this issue on

Version: 4.2.0.4
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

By the way in the worst possible situation. I am formatting an academic paper, and this behavior is making the task cumbersome and full of kludges. Line-spacing should be respected between paragraphs of same type, no matter the checkbox state.

Additional shame: Installed L.O. to various friends in similar tasks saying that L.O. will be better than the "famous commercial suite", as the suite in question is full of inconsistencies :(
Comment 6 Bacco 2014-05-11 18:04:49 UTC
Please read: "academic work" instead of paper. And the shame on me, not L.O., as I know that bug happens.

PS: "Beware" that my native language is Portuguese ;)
Comment 7 Marcos 2014-05-12 04:45:52 UTC
I can confirm that the bug is still present in version 4.2.4.2.
Comment 8 Marcos 2014-06-16 21:33:01 UTC
The bug persists in version 4.2.5.2.
Comment 9 Marcos 2014-07-25 23:21:45 UTC
I just tested. Bug persists in 4.2.6.2.
Comment 10 Alexander Polkhovskiy 2014-11-22 18:34:41 UTC
Also presents in 4.3.4.1.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.