diff --git a/src/guiguts/maintext.py b/src/guiguts/maintext.py index b78761a7..75f6546b 100644 --- a/src/guiguts/maintext.py +++ b/src/guiguts/maintext.py @@ -2293,7 +2293,7 @@ def rewrap_section( bq_depth_change = 0 # Split for non-blank/blank lines - if re.search(r"\S", line): + if re.search(rf"[^\s{PAGEMARK_PIN}]", line): paragraph_complete = False # Check for various block markup types trimmed = line.lower().rstrip(" \n").replace(PAGEMARK_PIN, "")