code formatting for SgmlReader