Remove whitespace from templates that cmoe out of the DOM.