Bug 108493 - FILEOPEN: DOCX file numbered list number in wrong place - not preserving hanging indent
Summary: FILEOPEN: DOCX file numbered list number in wrong place - not preserving hang...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
: 124769 (view as bug list)
Depends on:
Blocks: DOCX-Paragraph Paragraph-Indent
  Show dependency treegraph
 
Reported: 2017-06-13 00:08 UTC by Gabriel Bowater
Modified: 2019-07-12 08:11 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
File with indent problem on number 1 of numbered list (26.68 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-06-13 00:09 UTC, Gabriel Bowater
Details
Showing difference in rendering between Office 365 and LibreOffice (110.62 KB, application/pdf)
2017-06-13 00:10 UTC, Gabriel Bowater
Details
File with indent problem - compare MSO and LO (106.99 KB, image/jpeg)
2018-01-29 10:06 UTC, Timur
Details
Another example file from Word (19.23 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-07-12 06:44 UTC, Gabor Kelemen
Details
Screenshot of the example file in Word 2010 and Writer 6.2alpha (89.85 KB, image/png)
2018-07-12 06:46 UTC, Gabor Kelemen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Bowater 2017-06-13 00:08:20 UTC
Description:
When opening attached document in LibreOffice 5.2.2.3 the first level of the numbered list hierarchy doesn't have the hanging indent that the document has when opened in Microsoft Office

Steps to Reproduce:
1. Open document 
2. Check indentation of item "1."
3. Item has undivided indent when it should be a hanging indent

Actual Results:  
First level of numbered list has an undivided indent, meaning the number is rendered flush with the text

Expected Results:
First level of numbered list should be rendered with a hanging indent to the number is offset from the text block


Reproducible: Always

User Profile Reset: No - confirmed across multiple systems

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Comment 1 Gabriel Bowater 2017-06-13 00:09:21 UTC
Created attachment 133989 [details]
File with indent problem on number 1 of numbered list
Comment 2 Gabriel Bowater 2017-06-13 00:10:23 UTC
Created attachment 133990 [details]
Showing difference in rendering between Office 365 and LibreOffice
Comment 3 Xisco Faulí 2017-06-13 09:14:02 UTC
Confirmed in

- Version: 5.5.0.0.alpha0+
Build ID: 6ab249ea6aecef5d3f35d624622a368061cad9c3
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

- Version: 5.0.0.0.alpha1+
Build ID: 0db96caf0fcce09b87621c11b584a6d81cc7df86
Locale: ca-ES (ca_ES.UTF-8)

- Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

- Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

In 

- LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

it's even worse.
Comment 4 Timur 2018-01-29 10:06:39 UTC
Created attachment 139426 [details]
File with indent problem - compare MSO and LO

LO doesn't properly import "hanging" paragraphs.
Comment 5 Gabor Kelemen 2018-07-12 06:44:53 UTC
Created attachment 143498 [details]
Another example file from Word

We made this other example: -2 cm Left indent and 0.63 cm hanging indent becomes -1.37 cm Before text and -0.63 cm First line in current Writer master.
Comment 6 Gabor Kelemen 2018-07-12 06:46:10 UTC
Created attachment 143499 [details]
Screenshot of the example file in Word 2010 and Writer 6.2alpha
Comment 7 Timur 2019-01-28 14:40:23 UTC
Similar with DOC attachment 106262 [details]:
MSO setting is Centered, Indentation 0 cm, Special Hanging 0,79 cm.
LO opens as Before text 0,79 cm, After text 0 cm, First line 0,79 cm.
So it really moves text.
Repro 6.3+.
Comment 8 Gabor Kelemen 2019-07-12 08:10:00 UTC
*** Bug 124769 has been marked as a duplicate of this bug. ***
Comment 9 Gabor Kelemen 2019-07-12 08:11:56 UTC
This happens with simple paragraph indent too -> changing meta bug.

Also in the duplicate I commented (have it here too):

What's also interesting is that the amount of the hanging indent (0.4 cm in this file) is added to the indent before, but only on screen and not on docx save: the original value is written to the file.