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)
|
content = content.strip(strip)
|
||||||
|
|
||||||
if len(content) > maxlength:
|
if len(content) > maxlength:
|
||||||
new_content = content[maxlength-3] + '...'
|
new_content = content[:maxlength-3] + '...'
|
||||||
else:
|
else:
|
||||||
new_content = content
|
new_content = content
|
||||||
return new_content
|
return new_content
|
||||||
|
|||||||
Reference in New Issue
Block a user