Removes spaces after headings in templates.