| Class | RDoc::RI::SimpleFormatter |
| In: |
ri/formatter.rb
|
| Parent: | RDoc::RI::Formatter |
This formatter reduces extra lines for a simpler output. It improves way output looks for tools like IRC bots.
Place heading level indicators inline with heading.
# File ri/formatter.rb, line 585
585: def display_heading(text, level, indent)
586: text = strip_attributes(text)
587: case level
588: when 1
589: @output.puts "= " + text.upcase
590: when 2
591: @output.puts "-- " + text
592: else
593: @output.print indent, text, "\n"
594: end
595: end