[Libreoffice-bugs] [Bug 133000] FILEOPEN DOCX Indent of numbered paragraphs based on custom style lost

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 13 16:22:10 UTC 2020


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

--- Comment #4 from Justin L <jluth at mail.com> ---
Notice that it is only indenting that is wrong - the numbering itself is
correct (as described in Comment 0, but I just want to emphasize that). Also,
this only affects WWNum1, and if those lines are selected, changed to WWNum2,
and then back to WWNum1, then the indenting is correct. So the problem is
somewhere with direct formatting.

My patch had nothing to do with indenting, so this must have exposed some other
problem.  (Oh great.) Prior to my patch, CustomStyle had no idea that it was
specifying a numbering. Now it shows that it is connected to WWNum1, and
applies the numbering to new paragraphs that are marked as CustomStyle - like
it should.

It looks like the Style's indenting is being (dynamically - as a style) applied
INSTEAD OF the numbering's indenting on the sublevels. In other words, the
sublevels must not be splattering direct formatting onto the paragraph itself
like they normally do.
<w:style w:type="paragraph" w:customStyle="1" w:styleId="CustomStyle">
<w:name w:val="CustomStyle"/>
  <w:pPr>
    <w:numPr>
      <w:numId w:val="1"/>
    </w:numPr>
    <w:ind w:left="714" w:hanging="357"/>
  </w:pPr>
</w:style>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200513/c1800bc6/attachment.htm>


More information about the Libreoffice-bugs mailing list