mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add support for rules in ri output
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
68d292236d
commit
3009adaee2
3 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Dec 28 01:46:02 2003 Dave Thomas <dave@wireless_3.local.thomases.com>
|
||||||
|
|
||||||
|
* lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::display_flow_item):
|
||||||
|
Add support for rules in 'ri' output.
|
||||||
|
|
||||||
Sun Dec 28 01:35:35 2003 Dave Thomas <dave@pragprog.com>
|
Sun Dec 28 01:35:35 2003 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body):
|
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body):
|
||||||
|
|
|
@ -91,7 +91,7 @@ module SM
|
||||||
def accept_rule(am, fragment)
|
def accept_rule(am, fragment)
|
||||||
size = fragment.param
|
size = fragment.param
|
||||||
size = 10 if size > 10
|
size = 10 if size > 10
|
||||||
@res << Rule.new(size)
|
@res << Flow::RULE.new(size)
|
||||||
end
|
end
|
||||||
|
|
||||||
def accept_list_start(am, fragment)
|
def accept_list_start(am, fragment)
|
||||||
|
|
|
@ -166,8 +166,12 @@ module RI
|
||||||
|
|
||||||
when SM::Flow::H
|
when SM::Flow::H
|
||||||
display_heading(conv_html(item.text.join), item.level, @indent)
|
display_heading(conv_html(item.text.join), item.level, @indent)
|
||||||
|
|
||||||
|
when SM::Flow::RULE
|
||||||
|
draw_line
|
||||||
|
|
||||||
else
|
else
|
||||||
fail "Unknown flow element: #{item.class}"
|
fail "xxUnknown flow element: #{item.class}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue