From 7403cd015eec0f46ba517c1da00eab72814606de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20R=2E=20Sede=C3=B1o?= Date: Tue, 19 Apr 2022 13:50:24 -0400 Subject: [PATCH] Do not let multiple spaces after certain punctuation trigger non-wrap mode --- vt_decor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vt_decor.py b/vt_decor.py index 0fb2774..7a1ee48 100644 --- a/vt_decor.py +++ b/vt_decor.py @@ -103,7 +103,7 @@ def _get_width(): MSG_NO_WRAP_PATTERNS = [re.compile(x, re.MULTILINE) for x in ( r'^(?: |>)', r'\t', - r'[^.] ', + r'[^.?!,] ', )] MSG_LIST_WRAP_PATTERN = re.compile(r'(^\s*[-*]\s+)', re.MULTILINE) -- 2.45.2