Added jinja extension that knocks blank lines off end of text parts as per #612