Bug 77417

Summary: FILEOPEN: incorrect conversion of docx paragraph spacing details
Product: LibreOffice Reporter: Jay Philips <philipz85>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: qubit
Version: 4.2.3.3 release   
Hardware: Other   
OS: Linux (All)   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=77960
Whiteboard: BSA
i915 platform: i915 features:
Attachments: the file specified in the long description, along with a version of the file converted using the ms office compatibility pack
incorrect paragraph styles when opening DOCX file in LibO

Description Jay Philips 2014-04-14 06:36:00 UTC
Created attachment 97329 [details]
the file specified in the long description, along with a version of the file converted using the ms office compatibility pack

Problem description: 
Double the amount of spacing is found between paragraphs, as extra spacing is added above each paragraph

Steps to reproduce:
1. download docx file - http://www.microsoft.com/investor/reports/ar13/docs/2013_Annual_Report.docx
2. Goto the first page with text

Current behavior:
The conversion has the font style as 0.00" spacing above and 0.19" spacing below the paragraph, while the line paragraph details has 0.19" spacing above an 0.19" spacing below. The document also has similar paragraph spacing problems in all text in tables, which causes the document to increase from its initial size of around 90, to over 300.
Operating System: Ubuntu
Version: 4.2.2.1 release
Comment 1 Jay Philips 2014-04-15 06:38:48 UTC
as i my version number wasnt listed in the drop down, here is the correct version info from Help > About.

Version: 4.2.3.3
Build ID: 882f8a0a489bc99a9e60c7905a60226254cb6ff0
Comment 2 Robinson Tryon (qubit) 2014-04-20 22:23:03 UTC
(In reply to comment #0)
> 
> Problem description: 
> Double the amount of spacing is found between paragraphs, as extra spacing
> is added above each paragraph

RESULT: Tentative repro

> 
> Steps to reproduce:
> 1. download docx file -
> http://www.microsoft.com/investor/reports/ar13/docs/2013_Annual_Report.docx
> 2. Goto the first page with text
> 
> Current behavior:
> The conversion has the font style as 0.00" spacing above and 0.19" spacing
> below the paragraph, while the line paragraph details has 0.19" spacing
> above an 0.19" spacing below.

If I put my cursor on the word "Microsoft" in the paragraph "Fiscal Year 2013 was a pivotal year for Microsoft in every sense of the word.", I can right-click and select Paragraph -> Indents & Spacing, and see that Spacing Above paragraph is 0.19" and Spacing Below paragraph is 0.19".

If press the Escape key and right-click again on the same word, I can select Edit Paragraph Style... ->  Paragraph -> Indents & Spacing, and see that Spacing Above paragraph is 0.00" and Spacing Below paragraph is 0.19".  

I'm not sure why the values for "Spacing Above paragraph" differ here, but if the document is supposed to be 90 pages and is blossoming to ~ 300, then something is definitely wrong.

Testing on Ubuntu 12.04.4 + LO 4.2.3.3

Status -> NEW
Comment 3 Gergely Rácz 2014-07-07 08:15:45 UTC
Environment: 
OS: Win7
Libo: 4.2.5.2

I have a .DOCX file with "Normal(Web)" paragraph style.
Details of the style in MS Office:
- Spacing: Auto (before and after)
- Line Spacing: 1,0 (Normal)

When I open this file with LibO, I will have different settings on the document (under one paragraph style: "Normal(Web):

1. 
- Spacing: Above: 0cm; Below: 0,35cm
- Line spacing: Proportional 115%

2. 
- Spacing: Above: 0,49cm; Below: 0,49cm
- Line spacing: Proportional 115%

If it is okay I have uploaded the sample file for you with printscreens.
The file name is: test_gracz.zip
Comment 4 Gergely Rácz 2014-07-07 08:17:59 UTC
Created attachment 102353 [details]
incorrect paragraph styles when opening DOCX file in LibO

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.