]> asedeno.scripts.mit.edu Git - vt_decor.git/blobdiff - vt_decor.py
Do not let multiple spaces after certain punctuation trigger non-wrap mode
[vt_decor.git] / vt_decor.py
index 0fb2774311f99ad9a54b1b1a19b4a7e441c95fb3..7a1ee480fb1186fb937673fab25a6117a7e12d90 100644 (file)
@@ -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)