fix parse error if template removes the newline

As discussed on IRC a template causes a parse error if it removes the newline:
http://pastebin.com/TPpcs0Fm