Logo Search packages:      
Sourcecode: calibre version File versions

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

To know which level we're at, we have to count the number
    of <text:list> elements on the tagstack.

Definition at line 1028 of file odf2xhtml.py.

01028                                      :
        """ To know which level we're at, we have to count the number
            of <text:list> elements on the tagstack.
        """
        name = attrs.get( (TEXTNS,'style-name') )
        if name:
            name = name.replace(".","_")
            level = 1
        else:
            # FIXME: If a list is contained in a table cell or text box,
            # the list level must return to 1, even though the table or
            # textbox itself may be nested within another list.
            level = self.tagstack.count_tags(tag) + 1
            name = self.tagstack.rfindattr( (TEXTNS,'style-name') )
        if self.generate_css:
            self.opentag('%s' % self.listtypes.get(name), {'class':"%s_%d" % (name, level) })
        else:
            self.opentag('%s' % self.listtypes.get(name))
        self.purgedata()

    def e_text_list(self, tag, attrs):


Generated by  Doxygen 1.6.0   Back to index