make sure final post actually gets added to list

pull/23/head
Mallory Hancock 2017-11-09 14:04:16 -08:00
parent 30a57d1461
commit 033054821b
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ def split_posts_by_length(text, length):
else: else:
posts.append(post) posts.append(post)
post = chunk post = chunk
if post:
posts.append(post)
return posts return posts