From 5d4951aecda24905a81f196925da62d183772a49 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sat, 19 Apr 2025 03:55:03 +0300 Subject: [PATCH] update comment in post_parser.py to clarify main cut logic --- post_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post_parser.py b/post_parser.py index 136ea2b..de45f86 100644 --- a/post_parser.py +++ b/post_parser.py @@ -147,7 +147,7 @@ class PostParser: period_match = re.search(r'\.(?=\s)', first_line) if period_match: first_line = first_line[:period_match.start()].rstrip() - # Step 2: Apply the old logic + # Step 2: Apply the main cut logic cut_at = 37 max_extra_chars = 15 limit_index = cut_at + max_extra_chars # 52