Bug 76587 - FILEOPEN: DOCX - Unset paragraph and line spacing cause difference in appearance between MSO and LO
Summary: FILEOPEN: DOCX - Unset paragraph and line spacing cause difference in appeara...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.0.alpha0+ Master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Paragraph Paragraph-Line-Spacing
  Show dependency treegraph
 
Reported: 2014-03-25 10:19 UTC by Priyanka Gaikwad
Modified: 2017-07-20 19:12 UTC (History)
0 users

See Also:
Crash report or crash signature:
Regression By:


Attachments
Docx file (3.54 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-03-25 10:19 UTC, Priyanka Gaikwad
Details
Paragraph Line Spacing after 1st para.png shows that line spacing has been round tripped correctly. (136.79 KB, image/png)
2014-04-17 06:42 UTC, darshan.gandhi
Details

Note You need to log in before you can comment on or make changes to this bug.
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.