(self, text)
return len(text) - tab_count - newline_count + (self.tab_size * tab_count)
returns the computed columns in the given source text
returns the computed columns in the given source text
returns the computed columns in the given source text
def text_columns(self, text):
        """
        returns the computed columns in the given source text
        """
        tab_count = text.count("\t")
        newline_count = text.count("\n")
        return len(text) - tab_count - newline_count + (self.tab_size * tab_count)
def text_columns ( self , text ) : tab_count = text . count ( "\t" ) newline_count = text . count ( "\n" ) return len ( text ) - tab_count - newline_count + ( self . tab_size * tab_count )