Browse Source

Do not add space after period and colon.

scossu 4 months ago
parent
commit
f2ef3c6d03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scriptshifter/hooks/general/__init__.py

+ 1 - 1
scriptshifter/hooks/general/__init__.py

@@ -12,7 +12,7 @@ MULTI_WS_RE = compile(r"(\s){2,}")
 # Punctuation and brackets.
 # TODO add angled brackets, opening and closing quotes, etc.
 NORM1_RE = compile(r"\s([.,;:\)\]}])")
-NORM2_RE = compile(r"([.,;:\)\]}])(\S)")
+NORM2_RE = compile(r"([,;\)\]}])(\S)")
 NORM3_RE = compile(r"([\(\[\{])\s")
 NORM4_RE = compile(r"(\S)([\(\[\{])")