Exemplo n.º 1
0
 def make_format(self, format, default='disc', listtype = None):
     fmt = format or default
     if fmt in ('disc', 'circle', 'square') and listtype == 'ul':
         img = self.load_dingbat(fmt)
         return img or HTMLParser.make_format(self, format, default)
     else:
         return HTMLParser.make_format(self, format, default,
                                       listtype = listtype)
Exemplo n.º 2
0
 def make_format(self, format, default='disc', listtype = None):
     fmt = format or default
     if fmt in ('disc', 'circle', 'square') and listtype == 'ul':
         img = self.load_dingbat(fmt)
         return img or HTMLParser.make_format(self, format, default)
     else:
         return HTMLParser.make_format(self, format, default,
                                       listtype = listtype)
Exemplo n.º 3
0
 def make_format(self, format, default='disc', listtype=None):
     fmt = format or default
     if type(fmt) is StringType:
         fmt = string.lower(fmt)
     if fmt in ('disc', 'circle', 'square'):
         if listtype == 'ul':
             img = self.load_dingbat(fmt)
             return img or HTMLParser.make_format(self, format, default,
                                                  listtype = listtype)
         else:
             return '1.'
     else:
         return HTMLParser.make_format(self, format, default,
                                       listtype = listtype)
Exemplo n.º 4
0
 def make_format(self, format, default='disc', listtype=None):
     fmt = format or default
     if type(fmt) is StringType:
         fmt = string.lower(fmt)
     if fmt in ('disc', 'circle', 'square'):
         if listtype == 'ul':
             img = self.load_dingbat(fmt)
             return img or HTMLParser.make_format(self, format, default,
                                                  listtype = listtype)
         else:
             return '1.'
     else:
         return HTMLParser.make_format(self, format, default,
                                       listtype = listtype)