aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/markup/pre_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/markup/pre_process.rb')
-rw-r--r--lib/rdoc/markup/pre_process.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rdoc/markup/pre_process.rb b/lib/rdoc/markup/pre_process.rb
index ccc2688050..03f919aa0e 100644
--- a/lib/rdoc/markup/pre_process.rb
+++ b/lib/rdoc/markup/pre_process.rb
@@ -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?