Rewrite doc via diff during reformatting.