diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2011-02-04 18:05:04 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2011-02-04 18:05:04 +0000 |
commit | 10ef7a4d4b4bf308323f7569f69bdf60f23f1cb8 (patch) | |
tree | 33e9e52d72ff4d80b0fd6b0cb7912c74a5c57a05 | |
parent | 232f4627d491eca96ea921ca8af361110c558e9f (diff) | |
download | scala-10ef7a4d4b4bf308323f7569f69bdf60f23f1cb8.tar.gz scala-10ef7a4d4b4bf308323f7569f69bdf60f23f1cb8.tar.bz2 scala-10ef7a4d4b4bf308323f7569f69bdf60f23f1cb8.zip |
[scaladoc] Fixes the way new lines in wiki synt...
[scaladoc] Fixes the way new lines in wiki syntax convert to spaces.
Closes #3735. No review.
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala index c1a4fdddc3..124fe54195 100644 --- a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala +++ b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala @@ -545,10 +545,10 @@ trait CommentFactory { thisFactory: ModelFactory with CommentFactory => val current = inline0() (iss.last, current) match { - case (Text(t1), Text(t2)) => + case (Text(t1), Text(t2)) if skipEndOfLine => iss.update(iss.length - 1, Text(t1 + endOfLine + t2)) - case (_, Text(t)) if skipEndOfLine => - iss += Text(endOfLine + t) + case (i1, i2) if skipEndOfLine => + iss ++= List(Text(endOfLine.toString), i2) case _ => iss += current } } |