In a project with multiple layers of subdocuments, when inserting a subdocument containing a numbered list, pushing it a level deeper break the continuation
To Reproduce
Start with a first docx template with a numbered list generated by a loop (using explicit Word numbering list):
{% for item in content %}
1. {{ item }}{% endfor %}
then follow up with a second docx template:
{{ FIRST_TEMPLATE }}
And then a third:
{{ SECOND_TEMPLATE }}
Now, here comes the generation of the templates into new documents:
With the exception of newline changes, all output files should be visually identical
Current behavior
First and second files show the same, a two element numbered list, but the 3rd file doesn't continue the numbering
Screenshots
Additional context
On my personal project, when going one layer deeper in subdocuments, the next step even erase the numbering property of the list and turn it into a bullet point list instead.
Sadly, I couldn't reproduce this behaviour as easily and my code and templates contains too much confidential informations to show as is and are too intricate to try to strip it down to a minimalist POC
Describe the bug
In a project with multiple layers of subdocuments, when inserting a subdocument containing a numbered list, pushing it a level deeper break the continuation
To Reproduce
Start with a first docx template with a numbered list generated by a loop (using explicit Word numbering list):
then follow up with a second docx template:
And then a third:
Now, here comes the generation of the templates into new documents:
Expected behavior
With the exception of newline changes, all output files should be visually identical
Current behavior
First and second files show the same, a two element numbered list, but the 3rd file doesn't continue the numbering
Screenshots
Additional context
On my personal project, when going one layer deeper in subdocuments, the next step even erase the numbering property of the list and turn it into a bullet point list instead.
Sadly, I couldn't reproduce this behaviour as easily and my code and templates contains too much confidential informations to show as is and are too intricate to try to strip it down to a minimalist POC