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)