From eb32c46d6929999ae19f7c7d205248eba8966249 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Mon, 28 Mar 2011 16:58:54 +0000 Subject: [scaladoc] Remove whitespace around colon and p... [scaladoc] Remove whitespace around colon and parentheses. Closes #4372. Review by pedrofurla. --- .../scala/tools/nsc/doc/html/page/Template.scala | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/compiler') 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 19372d9e7c..3be5c3ba9c 100644 --- a/src/compiler/scala/tools/nsc/doc/html/page/Template.scala +++ b/src/compiler/scala/tools/nsc/doc/html/page/Template.scala @@ -453,16 +453,14 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage { 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 - - { Text(vl.name) } - { Text(": ") ++ typeToHtml(vl.resultType, hasLinks) } - { - vl.defaultValue match { - case Some(v) => Text(" = ") ++ treeToHtml(v) - case None => NodeSeq.Empty - } + { + Text(vl.name) + }{ Text(": ") ++ typeToHtml(vl.resultType, hasLinks) }{ + vl.defaultValue match { + case Some(v) => Text(" = ") ++ treeToHtml(v) + case None => NodeSeq.Empty } - + } def params0(vlss: List[ValueParam]): NodeSeq = vlss match { case Nil => NodeSeq.Empty @@ -482,8 +480,7 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage { case _ => NodeSeq.Empty } } - } - { if (isReduced) NodeSeq.Empty else { + }{ if (isReduced) NodeSeq.Empty else { mbr match { case tpl: DocTemplateEntity if (!tpl.isPackage) => tpl.parentType match { -- cgit v1.2.3