get_ellipsis#

get_ellipsis(long_string: str, max_length: int)[source]#

Return the long string with ellipsis if above max_length.

Parameters
long_stringstr

the string

max_lengthint

the string maximum length

Returns
str

the string with ellipsis.