Bug 90712 - DOCX import - paragraphs get single spaced even when document is double spaced
Summary: DOCX import - paragraphs get single spaced even when document is double spaced
Status: RESOLVED DUPLICATE of bug 75221
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.1.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-19 15:07 UTC by Elliotte Rusty Harold
Modified: 2017-10-28 18:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot attached that shows the problem (328.05 KB, image/png)
2015-04-19 22:30 UTC, Elliotte Rusty Harold
Details
document attached that shows the problem (6.67 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-04-20 11:10 UTC, Elliotte Rusty Harold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elliotte Rusty Harold 2015-04-19 15:07:51 UTC
When a document uses double spacing, it is still possible for there to be no space between paragraphs. I.e. the last line of a paragraph and the first line of the next are single spaced. This seems to be related to the "Format/Paragraph..." preference "Don't add space between paragraphs of the same style."

I.e. when this is checked, double spacing is not respected. IMHO this preference should refer to additional space beyond what is required between lines.

To make matters worse, at least when importing .docx documents from Google Docs, this seems to get checked by default and turning it off doesn't always work.
Comment 1 Julien Nabet 2015-04-19 15:25:05 UTC
On which LO version are you? (last one are 4.4.2 and 4.3.6)
Comment 2 Elliotte Rusty Harold 2015-04-19 22:28:16 UTC
4.4.1.2
Comment 3 Elliotte Rusty Harold 2015-04-19 22:30:04 UTC
Created attachment 114929 [details]
screenshot attached that shows the problem
Comment 4 Julien Nabet 2015-04-20 05:42:21 UTC
Thank you for your feedback.
Since I don't have more questions, I put it back to UNCONFIRMED.
Comment 5 Alex Thurgood 2015-04-20 06:41:29 UTC
@Elliotte : the screenshot you have provided shows a RTF document, not docx.

Please provide precise detailed steps for reproducing the behaviour you consider to be a bug and a sample document displaying the behaviour. At present, we have no way of telling whether this ia a problem introduced via GoogleDocs, an RTF formatted document, or a docx formatted document as you first indicated.

Please also provide your OSX version


Setting to NEEDINFO until requested information is received. Please set back to UNCONFIRMED once you have done so.
Comment 6 Elliotte Rusty Harold 2015-04-20 11:10:34 UTC
Created attachment 114956 [details]
document attached that shows the problem

I've been able to reproduce the problem in this document. I downloaded it from Google Docs as a .docx and opened it. Initially it was fine, so I checked "Don't add space between paragraphs of the same style" and then the problem occurs.

Sometimes (not always) the "Don't add space between paragraphs of the same style" option seems to be checked by default. (That's how I first noticed this.)
Comment 7 Elliotte Rusty Harold 2015-04-20 11:11:43 UTC
setting status to unconfirmed.
Comment 8 Alex Thurgood 2015-04-21 05:44:49 UTC
Hi Elliotte,

Thanks for the document, I can see that the end of one paragraph and the first line of the next are not separated by double spacing when the "Don't add space between paragraphs of the same style" option is ticked. However, if I untick this, the paragraph spacing returns to double spaced as expected.

I still don't understand why this is a problem that is specific to LibreOffice - it might well be, but it could also be the format to which GoogleDocs writes out when saving as docx which causes this option to be set.

I created a double spaced document with four paragraphs, all of the same style, in Word 15.9 for OSX, saved the file as docx, then re-opened that file in LibreOffice 4412 - the document opened fine and the paragraphs were correctly spaced. Note that Word, like LibreOffice, has an option to indicate that the paragraphs not contain added space where the styles are the same.

My conclusion is that it appears that GoogleDocs is the culprit for adding that option to the paragraph style formatting when you export to docx. By default, Word does not do this. If the problem lies with GoogleDocs, there isn't much LibreOffice can do about this.

I can not at present confirm the existence of a problem with LibreOffice in this regard, for me that option does what it says, i.e. removes pacing between the end of one paragraph and the beginning of the next, so it appears to work as designed.
Comment 9 Alex Thurgood 2015-04-21 05:46:52 UTC
I am of a mind to mark this as NOTABUG, but if you feel otherwise or have more information to put forward as to why this is LibreOffice's behaviour causing the problem, then please do.
Comment 10 Alex Thurgood 2015-04-21 05:50:51 UTC
@Elliotte : forget my last comment. I opened your test document in Word 15.9 for OSX and lo and behold, it displayed with double spacing throughout, so the problem would indeed appear to lie in the import filter for LibreOffice.

Confirming issue. Thank you for you help in this matter.

Changing title to reflect findings.
Comment 11 Alex Thurgood 2015-04-21 05:54:54 UTC
Steps for comparison :

1) Open the document in LibreOffice production release (4412) - notice how the ends of the paragraphs are not double spaced with regard to the beginning of the subsequent paragraph. The option "Don't add space between paragraphs of the same style" appears to have been added on import by LibreOffice, or an xml flag is misinterpreted somewhere.

2) Open the same file in Word - all paragraphs are displayed correctly double-spaced.
Comment 12 Elliotte Rusty Harold 2015-04-21 10:06:30 UTC
I noticed this with a Google Docs export, but I suspect I could reproduce it with a new document created in LibreOffice from the beginning. Update: just tried it, and yes I can. 

I think it comes down to the interpretation of "Don't Add Space between paragraphs of the same style" option

I think the natural meaning of that preference is that LibreOffice should not add any extra interparagraph space above and beyond the interline spacing. However the interline spacing should not change.

What seems to be happening is that LibreOffice actually removes all interline spacing between paragraphs of the same style.
Comment 13 Elliotte Rusty Harold 2015-04-21 10:07:39 UTC
Consequently I don't think it's the import filter at fault here. LibreOffice appears to be importing correctly, but rendering the imported document incorrectly.
Comment 14 Alex Thurgood 2015-04-21 10:18:24 UTC

*** This bug has been marked as a duplicate of bug 74888 ***
Comment 15 Xisco Faulí 2017-10-28 18:24:34 UTC

*** This bug has been marked as a duplicate of bug 75221 ***