* lib/rdoc.rb: Import RDoc 3.7 release candidate

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-06-16 04:59:24 +00:00
parent 97ac172d58
commit b7528b5edb
58 changed files with 2637 additions and 277 deletions

View file

@ -74,6 +74,13 @@ class RDoc::Markup::PreProcess
filename = param.split[0]
encoding = if defined?(Encoding) then text.encoding else nil end
include_file filename, prefix, encoding
when 'category' then
if RDoc::Context === code_object then
section = code_object.add_section param, ''
code_object.temporary_section = section
end
'' # ignore category if we're not on an RDoc::Context
else
result = yield directive, param if block_given?