Fix validate-frontmatter.py GBK encoding error on Windows
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user