lib/asciidoctor/iso/utils.rb in asciidoctor-iso-0.7.0 vs lib/asciidoctor/iso/utils.rb in asciidoctor-iso-0.7.1
- old
+ new
@@ -17,9 +17,11 @@
end
def current_location(n)
return "Line #{n.lineno}" if n.respond_to?(:lineno) &&
!n.lineno.nil? && !n.lineno.empty?
+ return "Line #{n.line}" if n.respond_to?(:line) &&
+ !n.line.nil?
return "ID #{n.id}" if n.respond_to?(:id) && !n.id.nil?
while !n.nil? &&
(!n.respond_to?(:level) || n.level.positive?) &&
(!n.respond_to?(:context) || n.context != :section)
n = n.parent