(self)
return ret
Return the starting and ending indices into self.columns deliminating
        the columns that should be in each tab.
        :return:
Return the starting and ending indices into self.columns deliminating
        the columns that should be in each tab.
        :return:
Return the starting and ending indices into self . columns deliminating the columns that should be in each tab . : return :
def get_tab_spans(self):
        '''
        Return the starting and ending indices into self.columns deliminating
        the columns that should be in each tab.
        :return:
        '''
        tabs = list(self.get_tabs())
        ret = []
        for tab in tabs:
            try:
                end = tabs[tab.id + 1].starting_index
            except IndexError:
                end = len(self.columns)
            ret.append((tab.starting_index, end))
        return ret
def get_tab_spans ( self ) : tabs = list ( self . get_tabs ( ) ) ret = [ ] for tab in tabs : try : end = tabs [ tab . id + 1 ] . starting_index except IndexError : end = len ( self . columns ) ret . append ( ( tab . starting_index , end ) ) return ret