source/dcm_transform.py
def truncate_str(input_str, maxlen, ending='..'):
    """Truncate teh string if more than maxlen chars """
    if len(input_str) > maxlen:
        return input_str[:(maxlen - len(ending))] + ending
    return input_str
Truncate teh string if more than maxlen chars 
Truncate teh string if more than maxlen chars
Truncate teh string if more than maxlen chars
def truncate_str(input_str, maxlen, ending='..'):
    if len(input_str) > maxlen:
        return input_str[:(maxlen - len(ending))] + ending
    return input_str
def truncate_str ( input_str , maxlen , ending = '..' ) : if len ( input_str ) > maxlen : return input_str [ : ( maxlen - len ( ending ) ) ] + ending return input_str
Truncate teh string if more than maxlen chars
Truncate teh string if more than maxlen chars
"""Truncate teh string if more than maxlen chars """
input_str
maxlen
ending