Open marcus-hao opened 10 months ago
You should use the for loop in one column only but loop variable 'event' in all columns. Open any table example like https://github.com/elapouya/python-docx-template/blob/master/tests/templates/dynamic_table_tpl.docx
I am trying to query data for multiple columns using for loops for each column(they are all on the same row). I think something is wrong with the logic of my template, because the data in the last column will overwrite previous columns.
The code:
Screenshots
Template![template](https://github.com/elapouya/python-docx-template/assets/24224821/cf38ce83-2683-433c-aaab-8e1ca4bbc921)
Expected![Expected](https://github.com/elapouya/python-docx-template/assets/24224821/8f7dea3d-72ba-458f-9ac8-a3657c08cef9)
Output![Output](https://github.com/elapouya/python-docx-template/assets/24224821/bbb0e4ae-5752-4c8b-b521-243919ed6c8c)