support spaces and line breaks around comments and move 'sanitize' logic into esformatter