summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rdoc/ri/ri_descriptions.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rdoc/ri/ri_descriptions.rb b/lib/rdoc/ri/ri_descriptions.rb
index 316fc91903..e5ea9f2fbf 100644
--- a/lib/rdoc/ri/ri_descriptions.rb
+++ b/lib/rdoc/ri/ri_descriptions.rb
@@ -95,8 +95,10 @@ module RI
if @comment.nil? || @comment.empty?
@comment = old.comment
else
- @comment << SM::Flow::RULE.new
- @comment.concat old.comment
+ unless old.comment.nil? or old.comment.empty? then
+ @comment << SM::Flow::RULE.new
+ @comment.concat old.comment
+ end
end
end