Eric Lapouyade
30578cf88c
InlineImage now possible in header/footer
2021-04-06 09:46:57 +02:00
Eric Lapouyade
3d95dd88f7
flake8 code styling fix
2020-11-09 09:30:21 +01:00
Eric Lapouyade
0c5ebcbc54
flake8 code styling fix
2020-11-09 09:22:33 +01:00
Eric Lapouyade
79994ed2c8
fix #323
2020-11-09 09:12:16 +01:00
Eric Lapouyade
4af6f2282f
flake8 fixes
2020-10-19 14:16:07 +02:00
Eric Lapouyade
344a7d1676
flake8 fixes
2020-10-19 14:10:24 +02:00
Eric Lapouyade
44a0819625
\n, \a, \t and \f are now accepted in simple context string
2020-10-19 13:59:36 +02:00
Eric Lapouyade
7282856484
revert 0.10.4
2020-10-15 15:07:29 +02:00
Eric Lapouyade
9946c74fdc
PR #307 + #312
2020-10-15 08:57:03 +02:00
Eric Lapouyade
528c3b1ca5
Revert escape.py test files
2020-10-14 17:09:39 +02:00
Eric Lapouyade
cf8e493e93
Update escape.py to test new feature
2020-10-14 16:52:58 +02:00
UncleOraix
b1453e6eba
Support more types of underline
2020-08-28 23:51:42 +08:00
Eric Lapouyade
74d46579be
Fix codestyling (lint with flake8)
2020-05-24 12:07:24 +02:00
Eric Lapouyade
7363428782
v0.10.0
2020-05-24 11:54:49 +02:00
Edwin Smulders
9175f0cbd6
Fix codestyling according to flake8 rules
2020-04-16 23:06:57 +02:00
Eric Lapouyade
ccdf20a121
v0.9.0
2020-04-15 15:11:47 +02:00
Eric Lapouyade
97be69b950
{%- xxx -%} merging feature
2020-04-14 22:51:36 +02:00
Eric Lapouyade
888dd085f6
v0.7.0
2020-04-09 16:01:45 +02:00
Eric Lapouyade
444f862efa
Add replace_zipname()
2020-04-09 14:26:22 +02:00
Sébastien MAUROY
9a4dd4e28c
Adds the ability to add a RichText object to another RichText object
2019-11-09 12:14:24 +01:00
Eric Lapouyade
9f1cb53205
Merge pull request #203 from edufresne/master
...
Fix need to "Recover document" after using replace_media and saving to file-like object
2019-06-05 09:06:30 +02:00
ericdufresne
fbb930d3ea
Provide better support for file-like objects with replace-media
2019-06-03 11:34:16 -04:00
Eric Lapouyade
d9b5a4d2ab
v0.6.0 : DocxTemplate now accepts file-like objects
2019-06-03 16:31:45 +02:00
ericdufresne
a021c517f5
Issue- #200
2019-05-30 10:34:39 -04:00
ericdufresne
cd77712b5e
Issue #197 - Add support for file-like objects for replace_media
2019-05-22 15:15:19 -04:00
Eric Lapouyade
2fad92046e
Added PAGE_BREAK feature ( #168 )
2019-01-02 11:41:41 +01:00
Max Podolskii
5f6a5c4d6c
Added PAGE_BREAK feature: use '\f' in your text to get a manual page break rendered.
2018-12-27 22:21:46 -08:00
Max Podolskii
758daeeaab
Fixed issue #159 : autoescaped values for both str and unicode.
2018-12-19 23:13:06 -08:00
Nick Gashkov
195d6a7090
Fix tables with gridSpan that still have less cells after the tc forloop
2018-12-17 15:27:14 +03:00
Eric Lapouyade
a81c7cf31a
Revert "Fix tables that have less cells after the tc forloop"
2018-12-17 08:57:41 +01:00
Nick Gashkov
484c2c32bc
Fix 'gridSpan' of tables that have less cells after the '{%tc for%}'
2018-12-13 19:30:54 +03:00
Eric Lapouyade
e5c4c14966
- 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
2018-11-20 15:30:12 +01:00
Eric Lapouyade
20e30c541c
v0.5.9
2018-11-18 17:56:14 +01:00
Nick Gashkov
9aa6019d25
Add horizontal merge '{% hm %}' tag support
2018-11-16 16:44:12 +03:00
Eric Lapouyade
8b351236f7
fix #154
2018-11-08 12:20:09 +01:00
Max P
4564fed0b3
Added compatibility with Python 2.7 as to the method escape_values.
2018-11-07 17:38:57 -08:00
elapouya
bc9820e7cf
Render can now autoescape context dict
2018-11-07 16:56:25 +01:00
Max P
8dc7cc7de3
Added reminder for the test files.
2018-11-05 18:31:16 -08:00
Max P
7e72603441
Added test files for the auto escape.
2018-11-05 18:29:33 -08:00
Max P
40bf39cde7
Added method escape_values. Exclusively for Python3.
2018-11-05 18:17:43 -08:00
Eric Lapouyade
c04483e4d5
v0.5.6 - Fix #152
2018-10-18 10:07:28 +02:00
elapouya
4ea5d5fdaa
Cast to string, import cgi -> html
2018-10-05 14:24:05 +02:00
elapouya
a3b3fdfa18
Add sub/superscript in RichText
2018-09-19 09:42:48 +02:00
Eric Lapouyade
b84b52e97e
v0.5.2
2018-09-13 09:45:34 +02:00
Nick Gashkov
98ad7eebf7
Fix '{% vm %}' tag for table cells with XML attributes
...
Updated regex to match cell content inside '<w:t>' even if <w:t> has XML
attributes such as 'xml:space="preserve"'. Updated test to have this kind
of '<w:t>'.
2018-09-12 12:14:56 +03:00
Nick Gashkov
d6bfc8be79
Fix test incompatibility with Python 3 versions
...
Replaced 'print' instruction with call of a 'six' package's
implementation compatible with Python 2 as well as Python 3.
2018-09-11 16:08:19 +03:00
elapouya
aa903ac99f
Testing new cell vertical merge
2018-09-03 10:35:20 +02:00
Nick Gashkov
5ae0dbbf29
Fix broken tables caused by vertical merge inside complex nested tables
...
Updated regex pattern to make '{% vm %}' replace a two-step process:
- Search for <w:tc>...{% vm %}...</w:tc>;
- Parse table cell and put jinja tags inside correct places.
2018-08-31 18:57:54 +03:00
elapouya
7f994dc107
Use 'six' in template_error.py test
2018-08-07 10:51:19 +02:00
Eric Lapouyade
cb6971009f
Merge pull request #135 from jhpyle/error-context
...
Added test script for TemplateError trapping
2018-08-07 10:19:57 +02:00