diff options
author | Antoine Gourlay <antoine@gourlay.fr> | 2016-05-02 15:36:09 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-05-02 15:36:09 +0200 |
commit | 86fe7de15988ea511fdc5e4f44039154cd236149 (patch) | |
tree | 151edcfe12e7916c3186bd5955e23143e0a8d643 /src/scaladoc/scala/tools | |
parent | 5c2a2f725dccd0c4616a042e29c5b9e95d004192 (diff) | |
download | scala-86fe7de15988ea511fdc5e4f44039154cd236149.tar.gz scala-86fe7de15988ea511fdc5e4f44039154cd236149.tar.bz2 scala-86fe7de15988ea511fdc5e4f44039154cd236149.zip |
SI-9752 never ignore blank lines when parsing code blocks (#5125)
The default behavior when parsing the content of a tag text (like after
`@example`) was to ignore empty lines. That's fine, except when we are
in the middle of a code block, where preserving formatting matters.
Diffstat (limited to 'src/scaladoc/scala/tools')
-rw-r--r-- | src/scaladoc/scala/tools/nsc/doc/base/CommentFactoryBase.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scaladoc/scala/tools/nsc/doc/base/CommentFactoryBase.scala b/src/scaladoc/scala/tools/nsc/doc/base/CommentFactoryBase.scala index 8cd8a7ee09..d3b4bf8ff5 100644 --- a/src/scaladoc/scala/tools/nsc/doc/base/CommentFactoryBase.scala +++ b/src/scaladoc/scala/tools/nsc/doc/base/CommentFactoryBase.scala @@ -295,7 +295,7 @@ trait CommentFactoryBase { this: MemberLookupBase => } case line :: ls if (lastTagKey.isDefined) => { - val newtags = if (!line.isEmpty) { + val newtags = if (!line.isEmpty || inCodeBlock) { val key = lastTagKey.get val value = ((tags get key): @unchecked) match { |