You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug occurs in the manipulation of text footnotes, specifically in the relationship between the numbering and the corresponding footnote text. In the example file, when a paragraph and its associated footnote reference are deleted, the numbers reorganize as expected. However, the remaining footnote texts no longer correspond to their new reference numbers. For example, in the red-colored text, the footnote number changed from 3 to 2, but the footnote text still refers to the yellow-colored text that was removed from the document. This same issue persists for all subsequent footnotes.
Code:
from docxtpl import DocxTemplate
import os
dir = os.path.dirname(os.path.abspath(__file__))
doc = DocxTemplate(dir + "/my_word_template.docx")
context = { 'company_name' : "World company" }
doc.render(context)
doc.save(dir + "/generated_doc.docx")
The bug occurs in the manipulation of text footnotes, specifically in the relationship between the numbering and the corresponding footnote text. In the example file, when a paragraph and its associated footnote reference are deleted, the numbers reorganize as expected. However, the remaining footnote texts no longer correspond to their new reference numbers. For example, in the red-colored text, the footnote number changed from 3 to 2, but the footnote text still refers to the yellow-colored text that was removed from the document. This same issue persists for all subsequent footnotes.
Code:
generated_doc.docx
my_word_template.docx
The text was updated successfully, but these errors were encountered: