From 9bd40fc3d55eeacb83936b1c6700e91fb6c624f0 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 27 Dec 2003 16:49:22 +0000 Subject: Add support for rules in ri output git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/markup/simple_markup/to_flow.rb | 2 +- lib/rdoc/ri/ri_formatter.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rdoc/markup/simple_markup/to_flow.rb b/lib/rdoc/markup/simple_markup/to_flow.rb index 5d78849b9..d5f6732d5 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 03fee89d8..630e475a5 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 -- cgit