class RDoc::Markup::ToTest

def accept_blank_line(blank_line)

def accept_blank_line(blank_line)
  @res << "\n"
end

def accept_heading(heading)

def accept_heading(heading)
  @res << "#{'=' * heading.level} #{heading.text}"
end

def accept_list_end(list)

def accept_list_end(list)
  @list.pop
end

def accept_list_item_end(list_item)

def accept_list_item_end(list_item)
end

def accept_list_item_start(list_item)

def accept_list_item_start(list_item)
  @res << "#{' ' * (@list.size - 1)}#{@list.last}: "
end

def accept_list_start(list)

def accept_list_start(list)
  @list << case list.type
           when :BULLET then
             '*'
           when :NUMBER then
             '1'
           else
             list.type
           end
end

def accept_paragraph(paragraph)

def accept_paragraph(paragraph)
  @res << convert_flow(@am.flow(paragraph.text))
end

def accept_raw raw

def accept_raw raw
  @res << raw.parts.join
end

def accept_rule(rule)

def accept_rule(rule)
  @res << '-' * rule.weight
end

def accept_verbatim(verbatim)

def accept_verbatim(verbatim)
  @res << verbatim.text.gsub(/^(\S)/, '  \1')
end

def end_accepting

def end_accepting
  @res
end

def start_accepting

def start_accepting
  @res = []
  @list = []
end