Permalink
Browse files

making sure line numbers work on the edge

  • Loading branch information...
1 parent 29f0bac commit 6e07c780a673d44cecc642f13e618a66f42521a2 @tenderlove committed Jun 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/markup_validity/validator.rb
@@ -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

0 comments on commit 6e07c78

Please sign in to comment.