Bug 130278 - Line spacing "Fixed" not setable if the odt comes from doc
Summary: Line spacing "Fixed" not setable if the odt comes from doc
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Paragraph-Line-Spacing
  Show dependency treegraph
 
Reported: 2020-01-30 04:57 UTC by DarkTrick
Modified: 2024-01-31 09:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Document converted from doc document (15.76 KB, application/vnd.oasis.opendocument.text)
2020-01-30 04:57 UTC, DarkTrick
Details
Same file, this time purely created as ODT. Line spacing works as expected (8.19 KB, application/vnd.oasis.opendocument.text)
2020-01-30 08:20 UTC, DarkTrick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DarkTrick 2020-01-30 04:57:53 UTC
Created attachment 157520 [details]
Document converted from doc document

If 
- you have a doc/xdoc document 
- convert it to odt
- Try to change the line spacing to other than 1/1.25/1.5
Then the setting does not get applied.

For testing, using the attached test-document is probably the easiest.

Steps to reproduce:
- Open the attachment
- (The "a"s you see are formatted as paragraph style "aaa")
- "Edit style" for the paragraph style "aaa" (top left corner)
- Tab `Indents & Spacing` -> `Line Spacing` -> `Fixed` -> 10pt (or any other value)
- click `Apply` button

Expected result: 
- Line spacing setting gets applied.

Actual result: 
- Line spacing settings gets ignored.
Comment 1 Dieter 2020-01-30 07:10:13 UTC
DarkTrick, there's a difference between line spacing and paragraph spacing. Line spacing effects the spacing of lines within an paragraph; paragraph spacing affects the spacing between paragraphs. Since you only have single-line paragraphs in your document, it's clear, that line spacing doesn't change anything in your document.

Does this information solve your problem => NEEDINFO
Comment 2 DarkTrick 2020-01-30 08:20:20 UTC
Created attachment 157521 [details]
Same file, this time purely created as ODT. Line spacing works as expected

Lightspeed reply! +1

Did not solve my problem, though.

I added another attachment. It's the same steps to produce the lines (this time "b"s). This time the line spacing works.


There's also another problem with your answer:
Regarding your answer the line spacing should have no affect at all (because it's paragraphs). But `Line Spacing` = Single / 1.15 / 1.5 actually changes the spacing. 
Or did I overlook something?
Comment 3 Dieter 2020-01-30 15:27:08 UTC
O.K., now I got it (sorry for confusion).

I confirm it with

Version: 7.0.0.0.alpha0+ (x64)
Build ID: eeb2d19e77d6dc47c68e8ba0920a02cf64a1247b
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded
Comment 4 Dieter 2021-12-01 15:58:08 UTC
Still the same with

Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 5 QA Administrators 2023-12-02 03:16:31 UTC Comment hidden (obsolete)
Comment 6 Dieter 2023-12-10 13:23:39 UTC
Retested with

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (de_DE); UI: en-GB
Calc: CL threaded

and I'm a bit confused now

Help [1] says: "Line spacing - Specify the amount of space to leave between lines of text in a paragraph." but in fact it also sets the spacing between paragraphs. If this is intended, help should incude this information. And if it is intended, the bug description in comment 0 is correct.

so I add design-team for double-check.


Steps
1. Open attachment 157520 [details]. Every paragraph has PS "aaa"
2. Edit PS "aaa" -> Tab Indents & Spacing -> Line Spacing -> Fixed
3. Change value to 10pt (or any other value) and click "Apply" button

Actual result
No change in spacing

Expected result
Change in spacing

4. Change value to double (Works as expected)


[1] https://help.libreoffice.org/7.6/en-GB/text/shared/01/05030100.html?System=WIN&DbPAR=WRITER&HID=cui/ui/paraindentspacing/ParaIndentSpacing#bm_id3145138
Comment 7 V Stuart Foote 2023-12-10 15:10:27 UTC
(In reply to Dieter from comment #6)
> ... 
> and I'm a bit confused now
> 
> Help [1] says: "Line spacing - Specify the amount of space to leave between
> lines of text in a paragraph." but in fact it also sets the spacing between
> paragraphs. If this is intended, help should incude this information. And if
> it is intended, the bug description in comment 0 is correct.
> 

The 'Line Spacing' affects only the lines of text (i.e. external leading) within a paragraph.

The 'Spacing' -> 'Above paragraph' and 'Below paragraph' affect the additional leading between paragraphs. Those will apply to the 'aaa' style of the test document.

So that is not issue here. However, there is something incorrect with the source document's 'aaa' PS style and its 'Fixed' line spacing at ".13" -- confirming the mishandling by LO. Editing the line spacing of the style and applying does not adjust. Also clearing Direct Formatting does not affect.

However, creating a new document with a new style and applying Fixed line spacing behaves as expected.

So something in the original MS Word doc -- seems like the "P59" style and "aaa" .321cm Line-height for the style got munged on conversion?
Comment 8 Heiko Tietze 2023-12-11 14:44:13 UTC
I cannot follow the problem. As pointed out by Stuart we have Line Spacing and Above/Below Spacing. Changing those values works for me. => NAB

I don't see an issue for UX anyway, what have I missed?
Comment 9 Heiko Tietze 2024-01-31 09:14:11 UTC
Closing the unclear issue for now. Feel free to reopen.