Fix typo in minify

This commit is contained in:
2025-09-04 03:19:00 +10:00
parent 5388cba6e4
commit a83081d482

View File

@@ -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