90 Commits

Author SHA1 Message Date
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
Jonathan Pyle
0a3627d23a Added test script for TemplateError trapping 2018-08-06 22:04:00 -04:00
elapouya
23fbe8c048 Add Hyperlink in RichText 2018-08-03 15:26:56 +02:00
Eric Lapouyade
5456b1cfad Subdocument can now be based on an existing docx 2018-06-21 15:10:11 +02:00
Eric Lapouyade
95ffebb3fe Add font option in RichText 2018-06-07 16:42:12 +02:00
elapouya
a3c15b226e Fix runtests.py 2018-05-16 14:03:37 +02:00
elapouya
7437268425 Better tabs and spaces management for MS Word 2016 2018-05-16 13:56:50 +02:00
Eric Lapouyade
f2e76d0e61 Add jinja2 tags test file 2018-05-15 18:21:20 +02:00
Eric Lapouyade
aa9889fc26 Manage autoscaping on InlineImage, Richtext and Subdoc 2018-05-08 14:20:43 +02:00
Eric Lapouyade
fc9eb4733f Accept variables starting with 'r' in {{}} when no space after {{ 2018-02-03 10:58:33 +01:00
elapouya
57fbf33ff5 Remove debug traces 2017-10-16 08:19:15 +02:00
Eric Lapouyade
3d96e6e5f1 Add {% vm %} to merge cell vertically within a loop 2017-10-15 16:29:41 +02:00