Bug 76587

Summary: FILEOPEN: DOCX - Unset paragraph and line spacing cause difference in appearance between MSO and LO
Product: LibreOffice Reporter: Priyanka Gaikwad <priyanka.gaikwad>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: medium    
Version: 4.3.0.0.alpha0+ Master   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107830, 109235    
Attachments: Docx file
Paragraph Line Spacing after 1st para.png shows that line spacing has been round tripped correctly.

Description Priyanka Gaikwad 2014-03-25 10:19:56 UTC
Created attachment 96352 [details]
Docx file

Paragraph Line spacing is not preserved after first paragraph
Comment 1 Priyanka Gaikwad 2014-03-26 05:18:43 UTC
The attached document contain only text data.

If this document is saved in MS word and then open with LO, the line spacing is correct.

Problem Description :
The 'Spacing Before', 'Spacing After' & 'Line Spacing' are wrong.
Should be:
    Spacing Before = 0 pt
    Spacing After = 0 pt
    Line Spacing = Single

Actually:
    Spacing Before = 14 pt
    Spacing After = 14 pt
    Line Spacing = Multiple 1.15
Comment 2 Priyanka Gaikwad 2014-03-26 05:20:41 UTC
<w:docDefaults>
<w:rPrDefault>
<w:rPr>
<w:rFonts w:ascii="Liberation Serif" w:hAnsi="Liberation Serif" w:eastAsia="WenQuanYi Micro Hei" w:cs="Lohit Hindi"/>
<w:szCs w:val="24"/>
<w:lang w:val="en-IN" w:eastAsia="zh-CN" w:bidi="hi-IN"/>
</w:rPr>
</w:rPrDefault>
<w:pPrDefault>
<w:pPr></w:pPr>
</w:pPrDefault>
</w:docDefaults>
After Round trip this whole docDefault get added if this remove from roundtrip the paragraph line spacing is same as original file
Comment 3 darshan.gandhi 2014-04-17 06:42:33 UTC
Created attachment 97491 [details]
Paragraph Line Spacing after 1st para.png shows that line spacing has been round tripped correctly.
Comment 4 darshan.gandhi 2014-04-17 06:46:07 UTC
Paragraph Line spacing is being preserved after first paragraph.
Comment 5 darshan.gandhi 2014-04-17 06:47:00 UTC
Closing this issue as this is not reproducible in latest LO Master 
Version: 4.3.0.0.alpha0+
Build ID: 74d7911abf77643544c58a0d3e5fb956add76c44
TinderBox: Win-x86@42, Branch:master, Time: 2014-04-15_23:59:29
Comment 6 Yousuf Philips (jay) (retired) 2017-05-14 05:44:34 UTC
The main issue is that attachment 96352 [details] isnt a well produced OOXML file, as it is produced with LO 3.5, which didnt set the default paragraph's spacing after and line spacing, so Word sets these to its default of 10pt spacing after and 1.15 line spacing, and this results in the attachment 96352 [details] looking differently from the roundtripped .docx in Word, but them looking identical in LO.