~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to lib/rdoc/markup/to_test.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
class RDoc::Markup::ToTest < RDoc::Markup::Formatter
8
8
 
 
9
  # :stopdoc:
 
10
 
9
11
  ##
10
12
  # :section: Visitor
11
13
 
19
21
  end
20
22
 
21
23
  def accept_paragraph(paragraph)
22
 
    @res << paragraph.text
 
24
    @res << convert_flow(@am.flow(paragraph.text))
 
25
  end
 
26
 
 
27
  def accept_raw raw
 
28
    @res << raw.parts.join
23
29
  end
24
30
 
25
31
  def accept_verbatim(verbatim)
26
 
    @res << verbatim.text
 
32
    @res << verbatim.text.gsub(/^(\S)/, '  \1')
27
33
  end
28
34
 
29
35
  def accept_list_start(list)
60
66
    @res << '-' * rule.weight
61
67
  end
62
68
 
 
69
  # :startdoc:
 
70
 
63
71
end
64
72