Description: Indentation for first line of paragraph for attached document is incorrect. Expected same width for with follow up lines. Instead LO is using lesser value. See attached screenshot for visual difference. Quick check with random older versions shows that this behavior is not a regression, bug is reproducible with master and down to 3.3.0. Steps to Reproduce: Open attached document (indent.docx) in Writer Actual Results: First line of paragraph not aligned as follow up lines. Expected Results: All paragraph lines are with same indent to the left. Reproducible: Always User Profile Reset: No Additional Info: -
Created attachment 160411 [details] Source DOCX file
Created attachment 160412 [details] Visual side-by-side comparision of LO and Word
Created attachment 160640 [details] Source DOCX compared LO MSO paragraphs
This seems to have an inherited hanging indent setting: The Hinweis style is based on the Anleitung style, which has 0.63 cm hanging indent. The Hinweis style overrides this with no indent setting for the first line, but Writer seems to not notice this and use the 0.63 cm hanging indent setting from the parent Anleitung style.
It seems, this is a broken document with incomplete numbering data, see <w:numId w:val="0"/> in style "Hinweis" without definition of the referred numbering. Saving it in Word removes this, also add w:firstLine=0, according to the ad hoc opening of the broken document. @Vasily: if it's really possible to create such incomplete document in Word, please, reopen this issue.
Created attachment 169819 [details] Better bugdoc Re-did the bugdoc, still shows the prob.
Seems this <w:numId w:val="0"/> is actually a Word feature for following scenario: 1. We have paragraph style with some numbering. 2. We create a child paragraph style, but disable numbering in it. In this case for child style Word does emit this reference to zero numbering. As far as I got this should be treated as a "removed numbering". I was able to reproduce this behavior not on any existing document, but from a scratch in Word 365: 1. In new document we create new paragraph style "Style 1". 2. For this style we set some indentation (left, right and first line). 3. Also apply any random numbering to this style. 4. Create "Style 2" and set "Style 1" as a parent style. 5. For "Style 2" we remove any numberings. Text with applied "Style 2" displayed in a different way in Word 365 and Writer: Writer does takes indentation params from "Style 1" into account, Word does not.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/a4e7df83fcac6c68f110f89f41d5eb623038410e tdf#132752: docx import: improvements for first line indent in lists It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/dacd7c5d3df95e30ae6161e92015fc0449928a37 tdf#132752: docx import: improvements for first line indent in lists It will be available in 7.1.5. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
It's ok now with test documents from comments 3 and 6. Verified in Version: 7.2.0.0.alpha1+ / LibreOffice Community Build ID: f49e5902a3737c02fabf5bec23243ccb126426c4 CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded Thanks for fixing this bug.