remove some messy newlines and page breaks