Skip to content

Commit

Permalink
Fix paragraph ending
Browse files Browse the repository at this point in the history
End last sentence as well while ending a paragraph
  • Loading branch information
saadulkh committed May 7, 2024
1 parent e15b695 commit 6866dad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gruut/text_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,9 @@ def in_inline_lexicon(
# End of sentence
last_sentence = None
elif end_tag == "p":
# End of paragraph
# End of paragraph and sentence
last_paragraph = None
last_sentence = None
elif end_tag == "speak":
# End of speak
last_speak = root
Expand Down

0 comments on commit 6866dad

Please sign in to comment.