From c5657847112832bac89c2ae37ffa0a4d80c04523 Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Sat, 19 Mar 2011 12:14:14 +0000 Subject: [scaladoc] Closes #4361. --- .../scala/tools/nsc/doc/model/comment/CommentFactory.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala index 124fe54195..da69cad0ea 100644 --- a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala +++ b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala @@ -602,8 +602,11 @@ trait CommentFactory { thisFactory: ModelFactory with CommentFactory => def superscript(): Inline = { jump("^") val i = inline(check("^")) - jump("^") - Superscript(i) + if (jump("^")) { + Superscript(i) + } else { + Chain(Seq(Text("^"), i)) + } } def subscript(): Inline = { -- cgit v1.2.3