diff options
-rw-r--r-- | lib/rdoc/ri/ri_descriptions.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rdoc/ri/ri_descriptions.rb b/lib/rdoc/ri/ri_descriptions.rb index 316fc9190..e5ea9f2fb 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 |