Return whole text in a list if its length is less than the limit

This commit is contained in:
pancakes 2024-11-25 18:00:14 +10:00
parent 0431cf4da9
commit 10ef9293b6
No known key found for this signature in database
GPG key ID: ED53D426432B861B

View file

@ -13,6 +13,9 @@ def process_html(html: str) -> str:
def split_notes(text: str, limit: int) -> list[str]:
if len(text) <= limit:
return [text]
notes = []
prev = 0