Logo Search packages:      
Sourcecode: calibre version File versions

def odf::odf2xhtml::ODF2XHTML::s_text_list_level_style_bullet (   self,
  tag,
  attrs 
)

CSS doesn't have the ability to set the glyph
    to a particular character, so we just go through
    the available glyphs

Definition at line 1072 of file odf2xhtml.py.

01072                                                         :
        """ CSS doesn't have the ability to set the glyph
            to a particular character, so we just go through
            the available glyphs
        """
        name = self.tagstack.rfindattr( (STYLENS,'name') )
        self.listtypes[name] = 'ul'
        level = attrs[(TEXTNS,'level')]
        self.prevstyle = self.currentstyle
        self.currentstyle = ".%s_%s" % ( name.replace(".","_"), level)
        self.stylestack.append(self.currentstyle)
        self.styledict[self.currentstyle] = {}

        level = int(level)
        listtype = ("square", "disc", "circle")[level % 3]
        self.styledict[self.currentstyle][('','list-style-type')] = listtype

    def e_text_list_level_style_bullet(self, tag, attrs):


Generated by  Doxygen 1.6.0   Back to index