consistently use HtmlFormatter's tagNesting instead of HtmlPullParser's (fixes issue 2461)