From e6ee7c59801e4d5f68388dca7c5199e33b9a95b8 Mon Sep 17 00:00:00 2001 From: Nick Walton Date: Thu, 5 Dec 2019 21:17:32 -0700 Subject: [PATCH] Update utils.py (#17) --- story/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/story/utils.py b/story/utils.py index 5a325e0..954d205 100644 --- a/story/utils.py +++ b/story/utils.py @@ -103,7 +103,7 @@ def cut_trailing_sentence(text): if last_punc <= 0: last_punc = len(text)-1 - et_token = text.rfind("<") + et_token = text.find("<") if et_token > 0: last_punc = min(last_punc, et_token-1)