Remove some unnecessarily newlines and spaces in wiki markup.