Remove newlines that don't match surrounding style