remove newlines from <pre> blocks