call the method self.add_truncation_text with 2 arguments: if end_index is greater than zero, first end_index elements of text,
return self . add_truncation_text ( text [ : end_index or 0 ] , truncate )