diff options
Diffstat (limited to 'lib/rdoc/ri/ri_formatter.rb')
-rw-r--r-- | lib/rdoc/ri/ri_formatter.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/rdoc/ri/ri_formatter.rb b/lib/rdoc/ri/ri_formatter.rb index f4ea7cb049..07439b93f7 100644 --- a/lib/rdoc/ri/ri_formatter.rb +++ b/lib/rdoc/ri/ri_formatter.rb @@ -68,6 +68,15 @@ module RI ###################################################################### + # called when we want to ensure a nbew 'wrap' starts on a newline + # Only needed for HtmlFormatter, because the rest do their + # own line breaking + + def break_to_newline + end + + ###################################################################### + def bold_print(txt) print txt end @@ -459,14 +468,13 @@ module RI print(escape(achar.char)) end update_attributes(curr_attr, 0) unless curr_attr.zero? - puts end def draw_line(label=nil) if label != nil bold_print(label) end - puts("<hr /><p />") + puts("<hr>") end def bold_print(txt) @@ -477,6 +485,10 @@ module RI puts("<p>") end + def break_to_newline + puts("<br>") + end + def display_heading(text, level, indent) level = 4 if level > 4 tag("h#{level}") { text } |