Issue 121429 - Justified Format lost in .docx bullet text list
Summary: Justified Format lost in .docx bullet text list
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: Diego Valle Rosado
Keywords: needmoreinfo
Depends on:
Blocks: 121500
  Show dependency tree
Reported: 2012-12-02 22:09 UTC by slacka
Modified: 2013-08-19 05:46 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Justified Format lost (13.09 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-02-14 23:46 UTC, slacka
no flags Details
sample file .doc (177.84 KB, image/png)
2013-04-30 19:40 UTC, Diego Valle Rosado
no flags Details
sample file .docx (197.57 KB, image/png)
2013-04-30 19:41 UTC, Diego Valle Rosado
no flags Details
Justified Format lost (working .doc) (26.00 KB, application/msword)
2013-07-26 05:43 UTC, slacka
no flags Details
docx comparison (555.93 KB, image/jpeg)
2013-08-19 05:45 UTC, Edwin Sharp
no flags Details

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

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].