Forgot a file
This commit is contained in:
parent
f74e8fbcd0
commit
de67aad764
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ def multiword_replace(text, wordDic):
|
||||||
|
|
||||||
|
|
||||||
# from <http://stackoverflow.com/questions/250357/smart-truncate-in-python>
|
# from <http://stackoverflow.com/questions/250357/smart-truncate-in-python>
|
||||||
def truncate_words(content, length=100, suffix='...'):
|
def truncate_str(content, length=100, suffix='...'):
|
||||||
"Truncates a string after a certain number of chars."
|
"Truncates a string after a certain number of chars."
|
||||||
if len(content) <= length:
|
if len(content) <= length:
|
||||||
return content
|
return content
|
||||||
|
|
Reference in a new issue