lib/kramdown/parser/kramdown/footnote.rb in kramdown-1.4.0 vs lib/kramdown/parser/kramdown/footnote.rb in kramdown-1.4.1

- old
+ new

@@ -22,10 +22,10 @@ start_line_number = @src.current_line_number @src.pos += @src.matched_size el = Element.new(:footnote_def, nil, nil, :location => start_line_number) parse_blocks(el, @src[2].gsub(INDENT, '')) - warning("Duplicate footnote name '#{@src[1]}' - overwriting") if @footnotes[@src[1]] + warning("Duplicate footnote name '#{@src[1]}' on line #{start_line_number} - overwriting") if @footnotes[@src[1]] (@footnotes[@src[1]] = {})[:content] = el @tree.children << Element.new(:eob, :footnote_def, nil, :location => start_line_number) true end define_parser(:footnote_definition, FOOTNOTE_DEFINITION_START)