From cbb83fbf676e311898400882833da24814a30737 Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 14 Jun 2006 20:42:36 +0000 Subject: Don't merge ri files if is nil/empty git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ri/ri_descriptions.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/rdoc') 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 -- cgit v1.2.3