Revert defaults, disable workflow

This commit is contained in:
Deniz Şafak
2025-07-06 04:50:24 +03:00
parent c1fb4541dc
commit 6b997d2909
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ _sleep_procs = {"Darwin": None, "Linux": None} # Store sleep prevention process
def clean_text(text, *args, **kwargs):
# Load replace_single_newlines from config
cfg = load_config()
replace_single_newlines = cfg.get("replace_single_newlines", True)
replace_single_newlines = cfg.get("replace_single_newlines", False)
# Collapse all whitespace (excluding newlines) into single spaces per line and trim edges
lines = [re.sub(r"[^\S\n]+", " ", line).strip() for line in text.splitlines()]
text = "\n".join(lines)