Skip to content

Commit

Permalink
Added PAGE_BREAK feature (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Lapouyade committed Jan 2, 2019
1 parent e6b7b58 commit 2fad920
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,7 @@
0.5.15 (2019-01-02)
-------------------
- Added `PAGE_BREAK` feature (#168)

0.5.14 (2018-12-23)
-------------------
- Fixed issue #159: autoescaped values for both str and unicode.
Expand Down
2 changes: 1 addition & 1 deletion docxtpl/__init__.py
Expand Up @@ -6,7 +6,7 @@
'''
import functools

__version__ = '0.5.14'
__version__ = '0.5.15'

from lxml import etree
from docx import Document
Expand Down
2 changes: 1 addition & 1 deletion tests/escape.py
Expand Up @@ -5,7 +5,7 @@
context = {'myvar': R('"less than" must be escaped : <, this can be done with RichText() or R()'),
'myescvar': 'It can be escaped with a "|e" jinja filter in the template too : < ',
'nlnp': R('Here is a multiple\nlines\nstring\aand some\aother\aparagraphs\aNOTE: the current character styling is removed'),
'mylisting': Listing('the listing\nwith\nsome\nlines\nand special chars : <>&'),
'mylisting': Listing('the listing\nwith\nsome\nlines\nand special chars : <>&\f ... and a page break'),
'page_break': R('\f'),
}

Expand Down
Binary file modified tests/templates/escape_tpl.docx
Binary file not shown.

0 comments on commit 2fad920

Please sign in to comment.