diff options
author | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2011-04-01 17:09:59 +0000 |
---|---|---|
committer | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2011-04-01 17:09:59 +0000 |
commit | 4df2e9335b7f8831f7877baf855c28bb35d90c18 (patch) | |
tree | 79a93ca2247a7519199dcc34b87140a936089114 /src | |
parent | 1fd0b31aeca299d7f114578addf887f828d1e36b (diff) | |
download | scala-4df2e9335b7f8831f7877baf855c28bb35d90c18.tar.gz scala-4df2e9335b7f8831f7877baf855c28bb35d90c18.tar.bz2 scala-4df2e9335b7f8831f7877baf855c28bb35d90c18.zip |
Put "\n" between superclass's comment and subcl...
Put "\n" between superclass's comment and subclass's. Closes #4289.
Review by pedrofurla.
Diffstat (limited to 'src')
-rwxr-xr-x | src/compiler/scala/tools/nsc/ast/DocComments.scala | 4 |
1 files changed, 3 insertions, 1 deletions
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 => } } |