strip trailing whitespaces instead of compressing them in html, js and xml templates