diff options
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/markup/simple_markup/to_flow.rb | 2 | ||||
-rw-r--r-- | lib/rdoc/ri/ri_formatter.rb | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/rdoc/markup/simple_markup/to_flow.rb b/lib/rdoc/markup/simple_markup/to_flow.rb index 5d78849b91..d5f6732d5c 100644 --- a/lib/rdoc/markup/simple_markup/to_flow.rb +++ b/lib/rdoc/markup/simple_markup/to_flow.rb @@ -91,7 +91,7 @@ module SM def accept_rule(am, fragment) size = fragment.param size = 10 if size > 10 - @res << Rule.new(size) + @res << Flow::RULE.new(size) end def accept_list_start(am, fragment) diff --git a/lib/rdoc/ri/ri_formatter.rb b/lib/rdoc/ri/ri_formatter.rb index 03fee89d8f..630e475a54 100644 --- a/lib/rdoc/ri/ri_formatter.rb +++ b/lib/rdoc/ri/ri_formatter.rb @@ -166,8 +166,12 @@ module RI when SM::Flow::H display_heading(conv_html(item.text.join), item.level, @indent) + + when SM::Flow::RULE + draw_line + else - fail "Unknown flow element: #{item.class}" + fail "xxUnknown flow element: #{item.class}" end end |