-
-
Notifications
You must be signed in to change notification settings - Fork 657
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Very related to #2226 and #2227
Exported material
| BlockNote | LibreOffice | Google Docs |
|---|---|---|
|
|
|
Incorrrectness
List continuation
As you can see in the screenshots, the lists continues. This is because the items of list two have the same numId as list one, and are therefore the same list.
To fix this properly, word/numberings.xml must be calculated, not be a fixed and static file injected. New lists must have a unique w:numId. These numberings could reference the same abstract numbering when that makes sense.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document ...>
<w:body>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List one item one (ordered)</w:t>
</w:r>
</w:p>
<!-- ... -->
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/> <w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="3"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List 3 item 1 (unordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="3"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List 3 item 2 (unordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="1"/>
<w:numId w:val="3"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List 3 item 2 subitem 1 (unordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="1"/>
<w:numId w:val="3"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List 3 item 2 subitem 2 (unordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="3"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List 3 item 3 (unordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="1"/>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List 3 item 3 subitem 1 (ordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="1"/>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List 3 item 3 subitem 2 (ordered)</w:t>
</w:r>
</w:p>
<w:p/>
<w:sectPr>
<w:pgSz w:w="11906" w:h="16838" w:orient="portrait"/>
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="708" w:footer="708" w:gutter="0"/>
<w:pgNumType/>
<w:docGrid w:linePitch="360"/>
</w:sectPr>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List one item two (ordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List one item three (ordered)</w:t>
</w:r>
</w:p>
<!-- ... -->
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List two item one (ordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List two item two (ordered)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="2"/>
</w:numPr>
</w:pPr>
<w:r>
<w:t xml:space="preserve">List two item three (ordered)</w:t>
</w:r>
</w:p>
<w:p/>
<!-- ... -->
</w:body>
</w:document>
```Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working


