(self, data)
Handle date segments in help.html.
Handle date segments in help.html.
Handle date segments in help . html .
def handle_data(self, data):
        "Handle date segments in help.html."
        if self.show and not self.hdrlink:
            d = data if self.pre else data.replace('\n', ' ')
            if self.tags == 'h1':
                try:
                    self.hprefix = d[0:d.index(' ')]
                except ValueError:
                    self.hprefix = ''
            if self.tags in ['h1', 'h2', 'h3']:
                if (self.hprefix != '' and
                    d[0:len(self.hprefix)] == self.hprefix):
                    d = d[len(self.hprefix):]
                self.header += d.strip()
            self.text.insert('end', d, (self.tags, self.chartags))
def handle_data ( self , data ) : if self . show and not self . hdrlink : d = data if self . pre else data . replace ( '\n' , ' ' ) if self . tags == 'h1' : try : self . hprefix = d [ 0 : d . index ( ' ' ) ] except ValueError : self . hprefix = '' if self . tags in [ 'h1' , 'h2' , 'h3' ] : if ( self . hprefix != '' and d [ 0 : len ( self . hprefix ) ] == self . hprefix ) : d = d [ len ( self . hprefix ) : ] self . header += d . strip ( ) self . text . insert ( 'end' , d , ( self . tags , self . chartags ) )