diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2011-12-02 12:01:27 +0100 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2011-12-02 12:01:27 +0100 |
commit | 086b558f2d025323c86226b2560578c50ee48b84 (patch) | |
tree | 5cd36680918de403c4029d0dd688b42ff7896313 /src | |
parent | 947797ea23d711e501605c0cc218fec88e3b97ef (diff) | |
download | scala-086b558f2d025323c86226b2560578c50ee48b84.tar.gz scala-086b558f2d025323c86226b2560578c50ee48b84.tar.bz2 scala-086b558f2d025323c86226b2560578c50ee48b84.zip |
Fixes the annoying spaces between name, type params and params in ScalaDoc.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/page/Template.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala index 813958af85..5e5320ca9a 100644 --- a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala +++ b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala @@ -563,8 +563,7 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage { if (!nameLink.isEmpty) <a href={nameLink}>{nameHtml}</a> else nameHtml - } - { + }{ def tparamsToHtml(mbr: Entity): NodeSeq = mbr match { case hk: HigherKinded => val tpss = hk.typeParams @@ -580,8 +579,8 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage { case _ => NodeSeq.Empty } tparamsToHtml(mbr) - } - { if (isReduced) NodeSeq.Empty else { + }{ + if (isReduced) NodeSeq.Empty else { def paramsToHtml(vlsss: List[List[ValueParam]]): NodeSeq = { def param0(vl: ValueParam): NodeSeq = // notice the }{ in the next lines, they are necessary to avoid a undesired withspace in output |