From b4344e121c7e195f5244cd704d5296274d503dd1 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Wed, 20 Mar 2013 00:55:06 +0900 Subject: SI-6580 Scaladoc: Should not close void elements Because it will generate a useless element like "". To made matters worse, Scaladoc used to generate the element with attributes (like ). That's why we had SI-6580. --- test/scaladoc/run/SI-6580.check | 11 +++++++++++ test/scaladoc/run/SI-6580.scala | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 test/scaladoc/run/SI-6580.check create mode 100644 test/scaladoc/run/SI-6580.scala (limited to 'test/scaladoc/run') diff --git a/test/scaladoc/run/SI-6580.check b/test/scaladoc/run/SI-6580.check new file mode 100644 index 0000000000..2fb6ec3258 --- /dev/null +++ b/test/scaladoc/run/SI-6580.check @@ -0,0 +1,11 @@ +Chain(List(Chain(List(Text(Here z(1) is defined as follows:), Text( +), HtmlTag(
), Text( +), Text( ), HtmlTag(), Text( +), HtmlTag(
), Text( +), Text(plus z(1) times), Text( +), HtmlTag(
), Text( +), Text( ), HtmlTag(), Text( +), HtmlTag(
), Text( +), Text(equals QL of something +))))) +Done. diff --git a/test/scaladoc/run/SI-6580.scala b/test/scaladoc/run/SI-6580.scala new file mode 100644 index 0000000000..c544138f44 --- /dev/null +++ b/test/scaladoc/run/SI-6580.scala @@ -0,0 +1,32 @@ +import scala.tools.nsc.doc +import scala.tools.nsc.doc.model._ +import scala.tools.nsc.doc.html.page.{Index, ReferenceIndex} +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + override def scaladocSettings = "" + override def code = """ + + object Test { + /** Here z(1) is defined as follows: + *
+ * + *
+ * plus z(1) times + *
+ * + *
+ * equals QL of something + */ + def f = 1 + } + + """ + + def testModel(rootPackage: Package) { + import access._ + + val f = rootPackage._object("Test")._method("f") + println(f.comment.get.short) + } +} -- cgit v1.2.3