python-docx-template
python-docx-template copied to clipboard
remove SubdocComposer to use normal Composer to resolve blank page on…
The purpose of this PR is to fix all the related issues to SubDoc
https://github.com/elapouya/python-docx-template/issues/537 and https://github.com/elapouya/python-docx-template/issues/520
By simply use the composer directly it does not change the merging behavior, but the merging process is done correctly and display the content normally.
The only edge case I have noticed is when a filter is set in Jinja environment to dynamically merge a document using a function. This still print a blank page. But I will open an issue for this problem as well.