Skip to content

Commit

Permalink
making sure line numbers work on the edge
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 12, 2009
1 parent 29f0bac commit 6e07c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markup_validity/validator.rb
Expand Up @@ -22,7 +22,7 @@ def inspect
strings = []
errors.each do |error|

start = error.line >= 2 ? error.line - 2 : error.line
start = error.line - [2, error.line].min

error_line = error.line == 0 ? 1 : error.line

Expand Down

0 comments on commit 6e07c78

Please sign in to comment.