Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def do_li(self, attrs):
     self.list_check_dingbat(attrs)
     HTMLParser.do_li(self, attrs)
     self.formatter.writer.suppress_indentation()
Exemplo n.º 4
0
 def do_li(self, attrs):
     self.list_check_dingbat(attrs)
     HTMLParser.do_li(self, attrs)
     self.formatter.writer.suppress_indentation()