summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-03-28 16:58:54 +0000
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-03-28 16:58:54 +0000
commiteb32c46d6929999ae19f7c7d205248eba8966249 (patch)
tree727ec0c9d7cae347fa7177c04eec2e544fbfd056 /src/compiler
parentb6b0359b8a0745337a940594fcac8b7054411c12 (diff)
downloadscala-eb32c46d6929999ae19f7c7d205248eba8966249.tar.gz
scala-eb32c46d6929999ae19f7c7d205248eba8966249.tar.bz2
scala-eb32c46d6929999ae19f7c7d205248eba8966249.zip
[scaladoc] Remove whitespace around colon and p...
[scaladoc] Remove whitespace around colon and parentheses. Closes #4372. Review by pedrofurla.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/doc/html/page/Template.scala19
1 files changed, 8 insertions, 11 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 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
- <span name={ vl.name }>
- { Text(vl.name) }
- { Text(": ") ++ typeToHtml(vl.resultType, hasLinks) }
- {
- vl.defaultValue match {
- case Some(v) => Text(" = ") ++ treeToHtml(v)
- case None => NodeSeq.Empty
- }
+ <span name={ vl.name }>{
+ Text(vl.name)
+ }{ Text(": ") ++ typeToHtml(vl.resultType, hasLinks) }{
+ vl.defaultValue match {
+ case Some(v) => Text(" = ") ++ treeToHtml(v)
+ case None => NodeSeq.Empty
}
- </span>
+ }</span>
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 {