diff --git a/asciidoc_linter/reporter.py b/asciidoc_linter/reporter.py old mode 100755 new mode 100644 index 4531bff..471919d --- a/asciidoc_linter/reporter.py +++ b/asciidoc_linter/reporter.py @@ -50,7 +50,7 @@ def format_report(self, report: LintReport) -> str: output = [] for error in report.errors: - location = f"\033[36mline {error.line}\033[0m" + location = f"\033[36mline {error.position.line}\033[0m" if error.file: location = f"\033[36m{error.file}:{location}\033[0m" @@ -111,4 +111,4 @@ def format_report(self, report: LintReport) -> str: {"".join(rows)} -""" \ No newline at end of file +"""