public TagletOutput deprecatedTagOutput(Doc doc) {
        StringBuffer output = new StringBuffer();
        Tag[] deprs = doc.tags("deprecated");
        if (doc instanceof ClassDoc) {
            if (Util.isDeprecated((ProgramElementDoc) doc)) {
                output.append("<B>" +
                    ConfigurationImpl.getInstance().
                        getText("doclet.Deprecated") + "</B>&nbsp;");
                if (deprs.length > 0) {
                    Tag[] commentTags = deprs[0].inlineTags();
                    if (commentTags.length > 0) {

                        output.append(commentTagsToOutput(null, doc,
                            deprs[0].inlineTags(), false).toString()
                        );
                    }
                }
                output.append("<p>");
            }
        } else {
            MemberDoc member = (MemberDoc) doc;
            if (Util.isDeprecated((ProgramElementDoc) doc)) {
                output.append("<DD><B>" +
                    ConfigurationImpl.getInstance().
                            getText("doclet.Deprecated") + "</B>&nbsp;");
                if (deprs.length > 0) {
                    output.append("<I>");
                    output.append(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false).toString());
                    output.append("</I>");
                }
                if (member instanceof ExecutableMemberDoc) {
                    output.append(DocletConstants.NL + "<P>" +
                        DocletConstants.NL);
                }
            } else {
                if (Util.isDeprecated(member.containingClass())) {
                    output.append("<DD><B>" +
                    ConfigurationImpl.getInstance().
                            getText("doclet.Deprecated") + "</B>&nbsp;");
                }
            }
        }
        return new TagletOutputImpl(output.toString());
    }