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

            Bug ID: 159382
           Summary: DOCX import: Large space between footnote number and
                    following text, when paragraph has hanging indent
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 192176
  --> https://bugs.documentfoundation.org/attachment.cgi?id=192176&action=edit
A footnote with paragraph having a hanging indent

The attached document is created from scratch in Word; it has a footnote. The
single change of formatting was making footnote's paragraph style to use a
hanging indent.

In Word, the footnote number is immediately followed by the text. In Writer, it
is followed by a space (up to the 0.5" position of the hanging indent), after
which the footnote text starts.

The problem is caused by the code in SwNumberPortion::Format, which explicitly
checks if the portion is a footnote numbering; and then increases the portion's
width to the difference between the first line indent and left indent. This
check was added in commit 5a42d33f51c7e29ed1f0cefc13458c71aca11060
(INTEGRATION: CWS swqbugfixes05 (1.45.110); FILE MERGED, 2004-09-20) for
#i32902#. So it is required, at least for (existing) ODF.

Hence, a new compat option is needed (set in Word documents import), which
would be checked in the code, too.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to