Fix typo in minify
This commit is contained in:
@@ -9,7 +9,7 @@ def minify(content: str, maxlength: int, strip: Optional[str] = ' ', newlines: s
|
||||
content = content.strip(strip)
|
||||
|
||||
if len(content) > maxlength:
|
||||
new_content = content[maxlength-3] + '...'
|
||||
new_content = content[:maxlength-3] + '...'
|
||||
else:
|
||||
new_content = content
|
||||
return new_content
|
||||
|
||||
Reference in New Issue
Block a user