| Class | RI::SimpleFormatter |
| In: |
ri/ri_formatter.rb
|
| Parent: | TextFormatter |
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/ri_formatter.rb, line 633
633: def display_heading(text, level, indent)
634: text = strip_attributes(text)
635: case level
636: when 1
637: puts "= " + text.upcase
638: when 2
639: puts "-- " + text
640: else
641: print indent, text, "\n"
642: end
643: end