Jinja Templates Dropping Trailing Newline?

620 views
Skip to first unread message

Jeffrey Ollie

unread,
Jan 13, 2012, 8:58:32 AM1/13/12
to salt-users
It looks to me like templating a file with Jinja is dropping the
trailing newline from the file. I noticed this because minicom will
hang if there isn't a trailing newline at the end of the file. Other
whitespace doesn't seem to be touched, just the trailing newline. I
looked at the code a little but couldn't see where this might be
happening.

--
Jeff Ollie

Thomas S Hatch

unread,
Jan 13, 2012, 10:18:59 AM1/13/12
to salt-...@googlegroups.com
What version are you using? I think this got fixed in git.

Jeffrey Ollie

unread,
Jan 13, 2012, 10:26:39 AM1/13/12
to salt-...@googlegroups.com
On Fri, Jan 13, 2012 at 9:18 AM, Thomas S Hatch <that...@gmail.com> wrote:
> What version are you using? I think this got fixed in git.

Rev acba9960cd12ffc241173527f27a7e7573d1a32d from git.

Thomas S Hatch

unread,
Jan 13, 2012, 10:27:58 AM1/13/12
to salt-...@googlegroups.com
That would suggest that it is not fixed, I will file an issue so we can look into this, thanks for the find!

Thomas S Hatch

unread,
Jan 13, 2012, 10:30:41 AM1/13/12
to salt-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages