lib/citeproc/ruby/renderer/choose.rb in citeproc-ruby-2.0.0 vs lib/citeproc/ruby/renderer/choose.rb in citeproc-ruby-2.1.0

- old
+ new

@@ -22,13 +22,16 @@ def render_block(item, node) return '' unless node.has_children? join node.each_child.map { |child| render item, child - } + }, closest_delimiter_for(node) end + def closest_delimiter_for(node) + node.closest(/^group|layout$/)&.delimiter || '' + end # Evaluates the conditions of the passed-in Choose::Block # against the passed-in CitationItem using the Block's matcher. # # @param item [CiteProc::CitationItem] @@ -99,8 +102,7 @@ negate ? !result : result end end end - end end