Commit a1ca5311 authored by Steije van Schelt's avatar Steije van Schelt Committed by Mark Canterbury
Browse files

Fix XML linting, improve error marker

parent b7a635e8
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,11 +21,11 @@ def print_colorized_diff_line(line: str):

def lint(file: Path):
    completed = subprocess.run(
        ["xmllint", str(file)], capture_output=True, text=True, encoding="utf8"
        ["xmllint", "--format", str(file)], capture_output=True, text=True, encoding="utf8"
    )

    if completed.returncode != 0:
        print(f"  {str(f)}: FAIL")
        print(f" {str(f)}: FAIL")
        print(f"      xmlint error code {completed.returncode}")
        lines = completed.stderr.splitlines()
        for line in lines: