Remove unnecessary space
This commit is contained in:
1 parent
99778a0a63
commit
be91e188f5
1 file changed
+1
-1
@@ -3,7 +3,7 @@ from django.utils.encoding import smart_str
|
||||
|
||||
def truncatechars(value: str, chars=100):
|
||||
"""Truncate string and append …"""
|
||||
return (value[: chars - 1] + "…") if len(value) > chars else value
|
||||
return (value[:chars - 1] + "…") if len(value) > chars else value
|
||||
|
||||
|
||||
def strip(value):
|
||||
|
||||
Reference in new issue
Block a user