Files
HeurAMS/src/heurams/services/textproc.py

4 lines
88 B
Python

def truncate(text):
if len(text) <= 3:
return text
return text[:3] + ">"