I have a word document page.docx containing tables and the python file file 1.py:
from docxtpl import DocxTemplate
doc = DocxTemplate("page.docx")
context = { 'text': 'there could be your ad'}
a = doc.tables
for i in a:
if i.cell(0,0).text == 'some_text_in_title':
print(i.cell(0,0).text)
i.add_row()
doc.render(context)
doc.save("page1.docx")
This inserts new rows into the file but doesn't add borders to these new rows.
How can I set border settings in docxtpl?