summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri/descriptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/ri/descriptions.rb')
-rw-r--r--lib/rdoc/ri/descriptions.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rdoc/ri/descriptions.rb b/lib/rdoc/ri/descriptions.rb
index 6a30f51c9b3..0d8560323ae 100644
--- a/lib/rdoc/ri/descriptions.rb
+++ b/lib/rdoc/ri/descriptions.rb
@@ -93,8 +93,12 @@ class RDoc::RI::ModuleDescription < RDoc::RI::Description
@comment = old.comment
else
unless old.comment.nil? or old.comment.empty? then
- @comment << RDoc::Markup::Flow::RULE.new
- @comment.concat old.comment
+ if @comment.nil? or @comment.empty? then
+ @comment = old.comment
+ else
+ @comment << RDoc::Markup::Flow::RULE.new
+ @comment.concat old.comment
+ end
end
end
end