Make Text Short
#-*- coding: utf8 -*- def short_text(text, length=200): if len(text) > length: return text[:length] + ' ......' else: return text