Added PAGE_BREAK feature (#168)
This commit is contained in:
parent
e6b7b58c92
commit
2fad92046e
@ -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.
|
||||
|
||||
@ -6,7 +6,7 @@ Created : 2015-03-12
|
||||
'''
|
||||
import functools
|
||||
|
||||
__version__ = '0.5.14'
|
||||
__version__ = '0.5.15'
|
||||
|
||||
from lxml import etree
|
||||
from docx import Document
|
||||
|
||||
@ -5,7 +5,7 @@ tpl = DocxTemplate('templates/escape_tpl.docx')
|
||||
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'),
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user