# File lib/asciidoctor/backends/docbook45.rb, line 690 def anchor(target, text, type, node) case type when :ref %(<anchor#{common_attrs target, nil, text}/>) when :xref if node.attr? 'path', nil linkend = (node.attr 'fragment') || target text.nil? ? %(<xref linkend="#{linkend}"/>) : %(<link linkend="#{linkend}">#{text}</link>) else text = text || (node.attr 'path') %(<ulink url="#{target}">#{text}</ulink>) end when :link %(<ulink url="#{target}">#{text}</ulink>) when :bibref %(<anchor#{common_attrs target, nil, "[#{target}]"}/>[#{target}]) end end
Generated with the Darkfish Rdoc Generator 2.