https://bugs.documentfoundation.org/show_bug.cgi?id=167721

            Bug ID: 167721
           Summary: FILEOPEN DOCX: missing indent (leftChars=0 disables
                    style's leftChars and should use w:left)
           Product: LibreOffice
           Version: 25.8.0.0 alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bisected, filter:docx, regression
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
            Blocks: 83066

Created attachment 202067
  --> https://bugs.documentfoundation.org/attachment.cgi?id=202067&action=edit
fdo67759-1.docx_import-compare-1.png: RED=25.8.0, BLUE=25.8_oldest,
GRAYSCALE=Word2019

This overlay image shows that the image should be approximately centred on the
page, but now (the red portion) shows that there is no indent before the image.

The w:drawing is an inline image positioned by a "List paragraph" style named
"a3". List Paragraph defines the indent as
    <w:ind w:leftChars="400" w:left="800"/>
but this is overridden by direct paragraph formatting
    <w:ind w:leftChars="0" w:left="760"/>

The indent broke with 25.8's commit fbb46a2fd940d1b5f4b2782708756f67659c0f38
Author: Jonathan Clark on Thu Mar 13 00:36:07 2025 -0600
    tdf#83844 DOCX import: implement Ch-based LR indentation
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183066

Based on experimentation, leftChars=0 should DISABLE the use of Ch units and
tells the program to use w:left instead. (If I change the direct formatting to
leftChars=1, then the indent shows in the UI as 0.01ch, but with leftChars=0,
then the indent is shown as 1.34cm.)

Steps to reproduce
1.) open honeywell.docx (attachment 83635 from bug 67759)

The image should appear to be centred on the page because the paragraph has an
indent defined.

Not really a regression, since leftChars wasn't supported at all prior to
Jonathan's patch, but in this particular document ignoring leftChars is
correct.

Found by Collabora's mso-test.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=83066
[Bug 83066] [META] CJK (Chinese, Japanese, Korean, and Vietnamese) language
issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to