fighting with extraneous whitespace in Template prettyprinting