jinja templating should set keep_trailing_newline
Bug #1423599 reported by
Adam Collard
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
At the moment templates rendered using Jinja2 will have trailing newline characters stripped. This behaviour is unexpected and undesirable, since it is used to render file formats for which trailing newlines are significant.
Changed in charm-helpers: | |
status: | New → Confirmed |
To post a comment you must log in.
This flag is only available in Jinja2 2.7+, but the charm-helpers tests pin to 2.6 for compatibility with the Precise packages. We need to drop Precise support before we can proceed.