From d23c36c8fad40429360604ebb52de5fde4bf6ae4 Mon Sep 17 00:00:00 2001 From: Wasim Akram <55689108+wasimness@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:09:17 +0530 Subject: [PATCH] fix: build writes LF so check passes on Windows Co-Authored-By: Claude Opus 5.5 --- tools/build_spamblocker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build_spamblocker.py b/tools/build_spamblocker.py index 0c76554..e510d46 100644 --- a/tools/build_spamblocker.py +++ b/tools/build_spamblocker.py @@ -69,7 +69,7 @@ def main(): for strict in (False, True): name = f"spamwall-{cc}{'-strict' if strict else ''}" data = json.dumps(build(cc, strict), indent=1, ensure_ascii=False) - (OUT / f"{name}.json").write_text(data, encoding="utf-8") + (OUT / f"{name}.json").write_text(data, encoding="utf-8", newline="\n") with gzip.GzipFile(OUT / f"{name}.gz", "wb", mtime=0) as f: f.write(data.encode("utf-8")) print("built", name)