def do_li(self, attrs): if attrs.has_key('dingbat'): if self.list_stack: if self.list_stack[-1][0] == 'ul': self.list_handle_dingbat(attrs) else: self.list_handle_dingbat(attrs) elif attrs.has_key('src'): if self.list_stack: if self.list_stack[-1][0] == 'ul': self.list_handle_src(attrs) else: self.list_handle_src(attrs) HTMLParser.do_li(self, attrs)
def do_li(self, attrs): self.list_check_dingbat(attrs) HTMLParser.do_li(self, attrs) self.formatter.writer.suppress_indentation()