From a019082bc33c35dc9e8f53c0a724d88bf56514ed Mon Sep 17 00:00:00 2001 From: Philippus Baalman Date: Wed, 8 Feb 2017 09:56:49 +0100 Subject: SI-9704 don't add a closed HtmlTag if it is already closed --- test/scaladoc/run/SI-9704.check | 4 ++++ test/scaladoc/run/SI-9704.scala | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test/scaladoc/run/SI-9704.check create mode 100644 test/scaladoc/run/SI-9704.scala (limited to 'test') diff --git a/test/scaladoc/run/SI-9704.check b/test/scaladoc/run/SI-9704.check new file mode 100644 index 0000000000..5a73befd9b --- /dev/null +++ b/test/scaladoc/run/SI-9704.check @@ -0,0 +1,4 @@ +Chain(List(Chain(List(Text(Demonstrates a scala issue in which the closing link tag is duplicated), Text( +), HtmlTag(title), Text( +), Text())))) +Done. diff --git a/test/scaladoc/run/SI-9704.scala b/test/scaladoc/run/SI-9704.scala new file mode 100644 index 0000000000..e6f071704e --- /dev/null +++ b/test/scaladoc/run/SI-9704.scala @@ -0,0 +1,22 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest + +object Test extends ScaladocModelTest { + override def code = """ + object Foo { + /** + * Demonstrates a scala issue in which the closing link tag is duplicated + * title + */ + def bar = ??? + } + """ + + def scaladocSettings = "" + + def testModel(root: Package) = { + import access._ + val thing = root._object("Foo")._method("bar") + println(thing.comment.get.short) + } +} -- cgit v1.2.3