- PR #351
- It is now possible to put InlineImage in header/footer
- fix #323
- fix #320
- \n, \a, \t and \f are now accepted in simple context string. Thanks to chabErch@github
- Remove extension testing (#297)
- Fix spaces missing in some cases (#116, #227)
- Fix #271
- Code styling
- fix #266
- docxtpl is now able to use latest python-docx (0.8.10). Thanks to Dutchy-@github.
- Add replace_zipname() method to replace Excel and PowerPoint embedded files
- Add the possibility to add RichText to a Richtext
- Prevent lxml from attempting to parse None
- PR #207 and #209
- Handle spaces correctly when run are split by Jinja code (#205)
- PR #203
- DocxTemplate now accepts file-like objects (Thanks to edufresne)
- Fix #199
- Add support for file-like objects for replace_media (#197)
- Fix #176
- Delegated autoescaping to Jinja2 Environment (#175)
- Force to use python-docx 0.8.7 (#170)
- Add getting undeclared variables in the template (#171)
- Added PAGE_BREAK feature (#168)
- Fixed issue #159: autoescaped values for both str and unicode.
- Fix tables with gridSpan that have less cells after the tc forloop (#164)
- Smart double quotes in jinja tags are now converted into simple double quotes
- Smart quotes in jinja tags are now converted into simple quotes
- Add custom jinja filter example in tests/
- Reformat the code to be a little more PEP8 compliant
- Add {% hm %} tag for table columns horizontal merging (Thanks to nickgashkov)
- Split tests/tests_files dir into templates and output dirs
- autoescape support for python 2.7
- fix issue #154
- Render can now autoescape context dict
- Fix invalid xml parse because using {% vm %}
- Cast to string non-string value given to RichText or Listing objects
- Import html.escape instead of cgi.escape (deprecated)
- Declare package as python2 and python3 compatible for wheel distrib
- Add sub/superscript in RichText
- Fix table vertical merge
- An hyperlink can now be used in RichText
- Subdocument can now be based on an existing docx
- Add font option in RichText
- Better tabs and spaces management for MS Word 2016
- Wheel distribution
- Manage autoscaping on InlineImage, Richtext and Subdoc
- Purge MANIFEST.in file
- Accept variables starting with 'r' in {{}} when no space after {{
- Remove debug traces
- Add {% vm %} to merge cell vertically within a loop (Thanks to Arthaslixin)
- use six.iteritems() instead of iteritems for python 3 compatibility
- Fixed Bug #95 on replace_pic() method
- Add replace_pic() method to replace pictures from its filename (Thanks to Riccardo Gusmeroli)
- Improve image attachment for InlineImage ojects
- Add replace_media() method (useful for header/footer images)
- Add replace_embedded() method (useful for embedding docx)
- Fix exception in fix_table()
- Fix bug when using more than one {{r }} or {%r %} in the same run
- Fix git tag v0.3.6 was in fact for 0.3.5 package version so create a tag 0.3.7 for 0.3.7 package version
- Better head/footer jinja2 handling (Thanks to hugokernel)
- Fix bug where one is using '%' (modulo operator) inside a tag
- Add Listing class to manage n and a (new paragraph) and escape text AND keep current styling
- Add {%tc } tags for dynamic table columns (Thanks to majkls23)
- Remove version limitation over sphinx package in setup.py
- Add PNG & JPEG in tests/test_files/
- You can now add images directly without using subdoc, it is much more faster.
- Add dynamic colspan tag for tables
- Fix /n in RichText class
- Add Python 3 support for footer and header
- Fix bug when using utf-8 chracters inside footer or header in .docx template It now detects header/footer encoding automatically
- Fix bug where using subdocs is corrupting header and footer in generated docx Thanks to Denny Weinberg for his help.
- Add Header and Footer support (Thanks to Denny Weinberg)
- '>' and '<' can now be used inside jinja tags
- render() accepts optionnal jinja_env argument : useful to set custom filters and other things
- better subdoc management : accept tables
- better xml code cleaning around Jinja2 tags
- python 3 support
- remove debug code
- add lxml dependency
- fix template filter with quote
- add RichText support
- add subdoc support
- add some exemples in tests/
- First running version