- remove leading "DocType: XXX" - remove leading path and line number - add trailing comma (three columns total)