summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-04-11 13:52:29 +0000
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-04-11 13:52:29 +0000
commit7fba64d2d04d1ccbbe8b93b70d9ad203f3a52ca0 (patch)
tree6c26676c50bec27c88d82c4f1de23ac0735ada19 /src
parent50f6c7c275e63ad86566dc3a8063172f514605ed (diff)
downloadscala-7fba64d2d04d1ccbbe8b93b70d9ad203f3a52ca0.tar.gz
scala-7fba64d2d04d1ccbbe8b93b70d9ad203f3a52ca0.tar.bz2
scala-7fba64d2d04d1ccbbe8b93b70d9ad203f3a52ca0.zip
[scaladoc] Closes #4452. Review by malayeri.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/compiler/scala/tools/nsc/ast/DocComments.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/DocComments.scala b/src/compiler/scala/tools/nsc/ast/DocComments.scala
index 2e97a3d820..1a807cc2c3 100755
--- a/src/compiler/scala/tools/nsc/ast/DocComments.scala
+++ b/src/compiler/scala/tools/nsc/ast/DocComments.scala
@@ -304,7 +304,11 @@ trait DocComments { self: SymbolTable =>
val end = startTag(raw, (defines ::: usecases).sort(_._1 < _._1))
(if (end == raw.length - 2) raw else raw.substring(0, end) + "*/",
- defines map { case (start, end) => raw.substring(start, end) },
+ defines map {
+ case (start, end) => raw.substring(start, end)
+ } map {
+ _.replaceAll("(?m)^\\s+\\*", "")
+ },
usecases map { case (start, end) => decomposeUseCase(start, end) })
}