Return whole text in a list if its length is less than the limit
This commit is contained in:
parent
0431cf4da9
commit
10ef9293b6
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue