# File lib/asciidoctor/backends/html5.rb, line 613 def result(node) id_attribute = node.id ? %( id="#{node.id}") : nil classes = ['quoteblock', node.role].compact class_attribute = %( class="#{classes * ' '}") title_element = node.title? ? %(\n<div class="title">#{node.title}</div>) : nil attribution = (node.attr? 'attribution') ? (node.attr 'attribution') : nil citetitle = (node.attr? 'citetitle') ? (node.attr 'citetitle') : nil if attribution || citetitle cite_element = citetitle ? %(<cite>#{citetitle}</cite>) : nil attribution_text = attribution ? %(#{citetitle ? "<br>\n" : nil}— #{attribution}) : nil attribution_element = %(\n<div class="attribution">\n#{cite_element}#{attribution_text}\n</div>) else attribution_element = nil end %(<div#{id_attribute}#{class_attribute}>#{title_element} <blockquote> #{node.content} </blockquote>#{attribution_element} </div>) end
Generated with the Darkfish Rdoc Generator 2.