Remove trailing spaces messing up headings.