lib/docbookrx/docbook_visitor.rb
# transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
def process_example node
    append_blank_line
    append_block_title node
    elements = node.elements.to_a
    if elements.size > 0 && elements.first.name == 'title'
      elements.shift
    end
    if elements.size == 1 && (PARA_TAG_NAMES.include? (child = elements.first).name)
      append_line '[example]'
      @adjoin_next = false
      format_append_line child
    else
      append_line '===='
      @adjoin_next = true
      proceed node
      @adjoin_next = false
      append_line '===='
    end
    false
  end
def process_example node append_blank_line append_block_title node elements = node . elements . to_a if elements . size > 0 && elements . first . name == 'title' elements . shift end if elements . size == 1 && ( PARA_TAG_NAMES . include? ( child = elements . first ) . name ) append_line '[example]' @adjoin_next = false format_append_line child else append_line '====' @adjoin_next = true proceed node @adjoin_next = false append_line '====' end false end
transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
# must reset adjoin_next in case block title is placed
node
<not_specific>