fix that last character
This commit is contained in:
parent
71e0b2b489
commit
36a2257a95
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ def section(text: str, part: int):
|
|||
for long texts
|
||||
'''
|
||||
limit = config.character_limit
|
||||
return text[limit*part:limit*(part+1)-1]
|
||||
return text[limit*part:limit*(part+1)]
|
||||
|
||||
|
||||
def continued(text: str, part: int):
|
||||
|
@ -54,7 +54,7 @@ def continued(text: str, part: int):
|
|||
specifies if text is continued
|
||||
'''
|
||||
limit = config.character_limit
|
||||
if len(text) <= limit*(part+1)-1:
|
||||
if len(text) <= limit*(part+1):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue