lib/asciidoctor-bibliography/databases/rfc.rb in asciidoctor-bibliography-0.9.0 vs lib/asciidoctor-bibliography/databases/rfc.rb in asciidoctor-bibliography-0.9.1

- old
+ new

@@ -20,14 +20,14 @@ { "id" => reference_tag.attr("anchor"), "author" => get_author_list(reference_tag), "title" => reference_tag.xpath("//title").first&.text&.strip, "issued" => { - "date-parts" => get_date_parts(reference_tag), + "date-parts" => get_date_parts(reference_tag) }, # NOTE: we keep the original XML to re-render it when needed - "note" => reference_tag.to_xml, + "note" => reference_tag.to_xml } end def self.get_date_parts(reference_tag) date_tag = reference_tag.xpath("//date").first @@ -41,10 +41,10 @@ def self.get_author_list(reference_tag) author_tags = reference_tag.xpath("//author") author_tags.map do |author_tag| { "family" => author_tag&.attr("surname"), - "given" => author_tag&.attr("initials"), + "given" => author_tag&.attr("initials") } end end end end