diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 16:49:22 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 16:49:22 +0000 |
commit | 4cc67da551f1e34a09af6247770f781f5a9f6b62 (patch) | |
tree | d985123d5f7f006224652b73a5eb22d8ff1c74bc /lib | |
parent | e12ab34fd201cdf840a4888959128a2b6e3220f3 (diff) |
Add support for rules in ri output
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 |