diff --git a/tests/escape.py b/tests/escape.py index a18b926..79e59af 100644 --- a/tests/escape.py +++ b/tests/escape.py @@ -14,6 +14,9 @@ context = { 'the listing\nwith\nsome\nlines\nand special chars : <>&\f ... and a page break' ), 'page_break': R('\f'), + 'new_listing': """With the latest version of docxtpl, +there is no need to use Listing objects anymore. +Just use \\n for newline,\n\\t for \ttabulation and \\f for ...\f...page break""" } tpl.render(context) diff --git a/tests/templates/escape_tpl.docx b/tests/templates/escape_tpl.docx index d676492..51b236a 100644 Binary files a/tests/templates/escape_tpl.docx and b/tests/templates/escape_tpl.docx differ