summaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2013-01-11 08:23:24 -0500
committerW. Trevor King <wking@tremily.us>2013-01-11 08:47:30 -0500
commit7e912c6dfa7a17dd1334ecb1a8d57dd5722b633a (patch)
tree5072fa0f8dda217a8d26c5a56b11521b167f12c5 /CHANGES
parent21a2010bf2768bc658e09666c2135063ce004efc (diff)
downloadjinja2-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--CHANGES2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 6539c5f..43f5e8f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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.