Fix trailing spaces before closing tags