[HtmlFormatter] Improvements to adhere to coding standard.