From 4df2e9335b7f8831f7877baf855c28bb35d90c18 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Fri, 1 Apr 2011 17:09:59 +0000 Subject: Put "\n" between superclass's comment and subcl... Put "\n" between superclass's comment and subclass's. Closes #4289. Review by pedrofurla. --- src/compiler/scala/tools/nsc/ast/DocComments.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/compiler/scala/tools/nsc/ast') diff --git a/src/compiler/scala/tools/nsc/ast/DocComments.scala b/src/compiler/scala/tools/nsc/ast/DocComments.scala index 51c1fab0f1..9764e92cde 100755 --- a/src/compiler/scala/tools/nsc/ast/DocComments.scala +++ b/src/compiler/scala/tools/nsc/ast/DocComments.scala @@ -178,10 +178,12 @@ trait DocComments { self: SymbolTable => if (end > tocopy) tocopy = end case None => srcSec match { - case Some((start1, end1)) => + case Some((start1, end1)) => { out append dst.substring(copied, tocopy).trim + out append "\n" copied = tocopy out append src.substring(start1, end1).trim + } case None => } } -- cgit v1.2.3