the template tags needs to be on the line they're removing so not to create whitespace holes. Test the output and see.