From 557a0ebd03e224f3773c78eddf9cbd059bce924a Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Mon, 4 Apr 2011 16:19:32 +0000 Subject: Every tag element (even @define and @usecase) e... Every tag element (even @define and @usecase) end before the next recognised tag. Closes #4409. Review by extempore. --- test/scaladoc/resources/Trac4409.scala | 14 ++++++++++++++ test/scaladoc/scala/html/HtmlFactoryTest.scala | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 test/scaladoc/resources/Trac4409.scala (limited to 'test/scaladoc') diff --git a/test/scaladoc/resources/Trac4409.scala b/test/scaladoc/resources/Trac4409.scala new file mode 100644 index 0000000000..f93d3e238e --- /dev/null +++ b/test/scaladoc/resources/Trac4409.scala @@ -0,0 +1,14 @@ +/** + * @define xxx + * + * The value of xxx don't contain since tag. + * + * @since 1.0 + */ + +class Trac4409 { + /** + * $xxx + */ + def foo = 123 +} diff --git a/test/scaladoc/scala/html/HtmlFactoryTest.scala b/test/scaladoc/scala/html/HtmlFactoryTest.scala index c0cd55a7e7..6b599693da 100644 --- a/test/scaladoc/scala/html/HtmlFactoryTest.scala +++ b/test/scaladoc/scala/html/HtmlFactoryTest.scala @@ -257,4 +257,13 @@ object Test extends Properties("HtmlFactory") { case _ => false } } + + property("Trac #4409") = { + createTemplate("Trac4409.scala") match { + case node: scala.xml.Node => { + ! node.toString.contains("""
    since""") + } + case _ => false + } + } } -- cgit v1.2.3