8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 947797e commit 7dd5667Copy full SHA for 7dd5667
src/compiler/scala/tools/nsc/doc/html/page/Template.scala
@@ -563,8 +563,7 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage {
563
if (!nameLink.isEmpty)
564
<a href={nameLink}>{nameHtml}</a>
565
else nameHtml
566
- }
567
- {
+ }{
568
def tparamsToHtml(mbr: Entity): NodeSeq = mbr match {
569
case hk: HigherKinded =>
570
val tpss = hk.typeParams
@@ -580,8 +579,8 @@ class Template(tpl: DocTemplateEntity) extends HtmlPage {
580
579
case _ => NodeSeq.Empty
581
}
582
tparamsToHtml(mbr)
583
584
- { if (isReduced) NodeSeq.Empty else {
+ if (isReduced) NodeSeq.Empty else {
585
def paramsToHtml(vlsss: List[List[ValueParam]]): NodeSeq = {
586
def param0(vl: ValueParam): NodeSeq =
587
// notice the }{ in the next lines, they are necessary to avoid a undesired withspace in output
test/scaladoc/scala/html/HtmlFactoryTest.scala
@@ -141,8 +141,8 @@ object Test extends Properties("HtmlFactory") {
141
createTemplate("Trac4372.scala") match {
142
case node: scala.xml.Node => {
143
val html = node.toString
144
- html.contains("<span class=\"name\" title=\"gt4s: $plus$colon\">+:</span>\n") &&
145
- html.contains("<span class=\"name\" title=\"gt4s: $minus$colon\">-:</span>\n") &&
+ html.contains("<span class=\"name\" title=\"gt4s: $plus$colon\">+:</span>") &&
+ html.contains("<span class=\"name\" title=\"gt4s: $minus$colon\">-:</span>") &&
146
html.contains("""<span class="params">(<span name="n">n: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>""")
147
148
case _ => false
@@ -247,11 +247,11 @@ object Test extends Properties("HtmlFactory") {
247
val lines = """
248
|type Bar = AnyRef { type Dingus <: T forSome { type T <: String } }
249
|type Foo = AnyRef { ... /* 3 definitions in type refinement */ }
250
- |def g (x: T forSome { type T <: String }): String
251
- |def h (x: Float): AnyRef { def quux(x: Int,y: Int): Int }
252
- |def hh (x: Float): AnyRef { def quux(x: Int,y: Int): Int }
253
- |def j (x: Int): Bar
254
- |def k (): AnyRef { type Dingus <: T forSome { type T <: String } }
+ |def g(x: T forSome { type T <: String }): String
+ |def h(x: Float): AnyRef { def quux(x: Int,y: Int): Int }
+ |def hh(x: Float): AnyRef { def quux(x: Int,y: Int): Int }
+ |def j(x: Int): Bar
+ |def k(): AnyRef { type Dingus <: T forSome { type T <: String } }
255
""".stripMargin.trim.lines map (_.trim)
256
257
files("RefinementAndExistentials.html") match {