diff options
author | W. Trevor King <wking@tremily.us> | 2013-01-11 08:23:24 -0500 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2013-01-11 08:47:30 -0500 |
commit | 7e912c6dfa7a17dd1334ecb1a8d57dd5722b633a (patch) | |
tree | 5072fa0f8dda217a8d26c5a56b11521b167f12c5 /CHANGES | |
parent | 21a2010bf2768bc658e09666c2135063ce004efc (diff) | |
download | jinja2-7e912c6dfa7a17dd1334ecb1a8d57dd5722b633a.tar.gz |
Add `keep_trailing_newline` to configure final endline stripping
This option defaults to False for compatibility with the existing
behaviour. I've added the option because I expect I won't remember to
keep an extra trailing newline in my templates, and some non-HTML
templates *need* that last newline.
See also:
https://groups.google.com/d/msg/pocoo-libs/6DylMqq1voI/GXTbZJ1Tr-sJ
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,8 @@ Version 2.7 - Added `urlencode` filter that automatically quotes values for URL safe usage with utf-8 as only supported encoding. If applications want to change this encoding they can override the filter. +- Added `keep-trailing-newline` configuration to environments and + templates to optionally preserve the final trailing newline. - Accessing `last` on the loop context no longer causes the iterator to be consumed into a list. |