From 561ae9a31ebee54e6a7ba3f1a54a335febb22c55 Mon Sep 17 00:00:00 2001 From: Johan Nordberg Date: Sat, 28 May 2022 01:29:34 +0000 Subject: [PATCH] Typofix --- tortoise/utils/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tortoise/utils/text.py b/tortoise/utils/text.py index 1d0b718..e28c867 100644 --- a/tortoise/utils/text.py +++ b/tortoise/utils/text.py @@ -60,7 +60,7 @@ def split_and_recombine_text(text, desired_length=200, max_length=300): split_pos.append(pos) if len(current) >= desired_length: commit() - # treat end of quote as a boundary if its preceded by a space or newline + # treat end of quote as a boundary if its followed by a space or newline elif in_quote and peek(1) == '"' and peek(2) in '\n ': seek(2) split_pos.append(pos)