Fix validate-frontmatter.py GBK encoding error on Windows

This commit is contained in:
hehaiguang1123
2026-07-01 08:06:08 +08:00
parent a6f05ab2d5
commit a971d9f625
+2 -2
View File
@@ -139,10 +139,10 @@ def main():
for name, errs in sorted(all_errors.items()): for name, errs in sorted(all_errors.items()):
print(f"\n [[{name}]]:") print(f"\n [[{name}]]:")
for e in errs: for e in errs:
print(f" {e}") print(f" [ERR] {e}")
sys.exit(1) sys.exit(1)
else: else:
print(" All frontmatter valid") print("[OK] All frontmatter valid")
sys.exit(0) sys.exit(0)