lib/citeproc/ruby/renderer/date.rb in citeproc-ruby-1.1.1 vs lib/citeproc/ruby/renderer/date.rb in citeproc-ruby-1.1.2

- old
+ new

@@ -11,9 +11,11 @@ return '' unless node.has_variable? date = item.data[node.variable] return '' if date.nil? || date.empty? + return date.to_s if date.literal? + # TODO date-ranges if node.localized? localized_node = locale.date.detect { |d| d.form == node.form } or raise RenderingError, "no localized date for form #{node.form} found"