Skip to content

Commit

Permalink
Fix off-by-one error in JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Mar 31, 2016
1 parent c2a39e0 commit a940979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proselint/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ def show_errors(filename, errors, output_json=False, compact=False):
out.append({
"check": e[0],
"message": e[1],
"line": e[2],
"column": e[3],
"start": e[4],
"end": e[5],
"line": 1 + e[2],
"column": 1 + e[3],
"start": 1 + e[4],
"end": 1 + e[5],
"extent": e[6],
"severity": e[7],
"replacements": e[8],
Expand Down

0 comments on commit a940979

Please sign in to comment.