Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

making sure line numbers work on the edge

  • Loading branch information...
commit 6e07c780a673d44cecc642f13e618a66f42521a2 1 parent 29f0bac
@tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/markup_validity/validator.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.