Skip to content

Commit

Permalink
#line_number_from should return nil since we don't support line numbe…
Browse files Browse the repository at this point in the history
…rs right now

See: sparklemotion/nokogiri#1223
  • Loading branch information
camertron committed Feb 19, 2015
1 parent c4a461f commit 80b462b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rosette/extractors/xml-extractor.rb
Expand Up @@ -112,7 +112,10 @@ def name_from(node)
end

def line_number_from(node)
node.line
# Nokogiri supports `node.line`, but it doesn't return
# correct line numbers when running on JRuby. See:
# https://github.com/sparklemotion/nokogiri/issues/1223
nil
end

def unescape(text)
Expand Down

0 comments on commit 80b462b

Please sign in to comment.