Issue 121429

Summary: Justified Format lost in .docx bullet text list
Product: Writer Reporter: slacka <lukebenes>
Component: open-importAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact: Diego Valle Rosado <diegogvallerosado>
Severity: Normal    
Priority: P3 CC: binbjguo, elish, issues, orw
Version: 3.4.1Keywords: needmoreinfo
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://issues.apache.org/ooo/show_bug.cgi?id=103711
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 121500    
Attachments:
Description Flags
Justified Format lost
none
sample file .doc
none
sample file .docx
none
Justified Format lost (working .doc)
none
docx comparison none

Description slacka 2012-12-02 22:09:20 UTC
This bug was found in a OO v3.4 running in windows7 and Linux. It appears that
OpenOffice loses formatting when importing MS Office Open XML .docx files with
bullet or numbered lists. I have attached an example.

Steps to reproduce the bug:
1. Open attached BulletFormat.doc document in oowriter-3.4.1
2. Open attached BulletFormat.doc document in Word2007
3. Compare the documents. 

Notice the justified format code is lost in the bulleted text.


Oliver-Rainer Wittmann Fixed a similar bug with .doc files in the Bug 103711
The following was his analysis:
The analysis of Microsoft Word behavior reveals that the left indent for these
paragraphs are set at the paragraph itself, while the first line indent is set
at the corresponding list level of the applied list style.
When specifying the new position and space properties for list levels - see
specification http://specs.openoffice.org/writer/numbering/NewListLevelAttrs.odt
- such a situation has been overseen.
The problem that in OOo Writer all indent attributes (left indent, first line
indent and right indent) are combined in one attribute item makes it somehow
hard to take the left indent from the paragraph attributes and the first line
indent from the list level properties.

For the WW8 import I will implement the following solution:
- In case that a paragraph has only given a left indent and is inside a list
whose corresponding list level provides a first line indent the first line
indent from the list level is directly applied to the paragraph.
Comment 1 binguo 2012-12-21 09:34:12 UTC
would you please attach sample file into this bug? thank you.
Comment 2 Oliver-Rainer Wittmann 2013-02-14 07:25:39 UTC
@slacka: Please attach the mentioned document to reproduce the defect.
Comment 3 slacka 2013-02-14 23:46:15 UTC
Created attachment 80288 [details]
Justified Format lost

This file was made by taking my original BulletFormat.doc (Word 2003) file opening in 2007 and saving as native .docx format.
Comment 4 Diego Valle Rosado 2013-04-30 19:40:54 UTC
Created attachment 80613 [details]
sample file .doc
Comment 5 Diego Valle Rosado 2013-04-30 19:41:32 UTC
Created attachment 80614 [details]
sample file .docx
Comment 6 Diego Valle Rosado 2013-04-30 19:41:52 UTC
Hello 

I checked this issue using AOO 3.4.1  and Msoffice 2010., I attached two images one using a document file .doc  and second with sample file .docx. with the last one is different that the first one.

I'ts the same on AOO 4 and Msoffice 2013.
Comment 7 slacka 2013-06-23 17:43:16 UTC
I don't know if you share patches, but this bug was recently fixed in LibreOffice 4.
Comment 8 slacka 2013-07-26 05:43:39 UTC
Created attachment 81149 [details]
Justified Format lost (working .doc)

Attached is the .doc version of the file that is now working in AO 4.0.
Comment 9 slacka 2013-07-30 03:42:19 UTC
Is there a reason this is marked "UNCONFIRMED" and not "NEW"?
Comment 10 Edwin Sharp 2013-08-19 05:45:48 UTC
Created attachment 81354 [details]
docx comparison

Word 2007 (top)
Writer Rev. 1507307 (bottom)
Comment 11 Edwin Sharp 2013-08-19 05:46:18 UTC
See attachment 81354 [details].