128 * {@inheritDoc} |
128 * {@inheritDoc} |
129 */ |
129 */ |
130 public Content getTagletOutput(Doc holder, TagletWriter writer) |
130 public Content getTagletOutput(Doc holder, TagletWriter writer) |
131 throws IllegalArgumentException { |
131 throws IllegalArgumentException { |
132 Content output = writer.getOutputInstance(); |
132 Content output = writer.getOutputInstance(); |
133 output.addContent(new RawHtml(legacyTaglet.toString(holder.tags(getName())))); |
133 Tag[] tags = holder.tags(getName()); |
|
134 if (tags.length > 0) { |
|
135 String tagString = legacyTaglet.toString(tags); |
|
136 if (tagString != null) { |
|
137 output.addContent(new RawHtml(tagString)); |
|
138 } |
|
139 } |
134 return output; |
140 return output; |
135 } |
141 } |
136 } |
142 } |