Skip to content

Commit 66cbb5d

Browse files
committed
Fix merging of comment contents
1 parent 26bab53 commit 66cbb5d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/rdoc/ri/descriptions.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,12 @@ def merge_in(old)
9393
@comment = old.comment
9494
else
9595
unless old.comment.nil? or old.comment.empty? then
96-
@comment << RDoc::Markup::Flow::RULE.new
97-
@comment.concat old.comment
96+
if @comment.nil? or @comment.empty? then
97+
@comment = old.comment
98+
else
99+
@comment << RDoc::Markup::Flow::RULE.new
100+
@comment.concat old.comment
101+
end
98102
end
99103
end
100104
end

0 commit comments

Comments
 (0)