lib/wikicloth/extensions/references.rb in wikicloth-0.8.0 vs lib/wikicloth/extensions/references.rb in wikicloth-0.8.1

- old
+ new

@@ -38,10 +38,10 @@ ref_name = (r[:name].nil? ? "" : r[:name].to_slug + "_") ret = "<li id=\"cite_note-#{ref_name}#{ref_count}\"><b>" 1.upto(r[:count]) { |x| ret += "<a href=\"#cite_ref-#{ref_name}#{ref_count}-#{x-1}\">" + (r[:count] == 1 ? "^" : (x-1).to_s(26).tr('0-9a-p', 'a-z')) + "</a> " } ret += "</b> #{r[:value]}</li>" - }.to_s + }.join("\n") "<ol>#{refs}</ol>" end end end