src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java

changeset 2116
bf6b11347b1a
parent 1935
8c55df2442c1
child 2147
130b8c0e570e
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java	Tue Oct 15 16:23:18 2013 +0200
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java	Tue Oct 15 11:20:27 2013 -0700
     1.3 @@ -118,7 +118,8 @@
     1.4                  if (deprs.length > 0) {
     1.5                      Content body = commentTagsToOutput(null, doc,
     1.6                          deprs[0].inlineTags(), false);
     1.7 -                    result.addContent(HtmlTree.SPAN(HtmlStyle.italic, body));
     1.8 +                    if (!body.isEmpty())
     1.9 +                        result.addContent(HtmlTree.SPAN(HtmlStyle.italic, body));
    1.10                  }
    1.11              } else {
    1.12                  if (Util.isDeprecated(member.containingClass())) {

mercurial