1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java Tue May 14 10:14:54 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialMethodWriter.java Tue May 14 10:14:54 2013 -0700 1.3 @@ -146,19 +146,16 @@ 1.4 * @param methodsContentTree the tree to which the member tags info will be added 1.5 */ 1.6 public void addMemberTags(MethodDoc member, Content methodsContentTree) { 1.7 - TagletOutput output = new TagletOutputImpl(); 1.8 + TagletOutputImpl output = new TagletOutputImpl(); 1.9 TagletManager tagletManager = 1.10 configuration.tagletManager; 1.11 TagletWriter.genTagOuput(tagletManager, member, 1.12 tagletManager.getSerializedFormTags(), 1.13 writer.getTagletWriterInstance(false), output); 1.14 - String outputString = output.toString().trim(); 1.15 + Content tagContent = output.getContent(); 1.16 Content dlTags = new HtmlTree(HtmlTag.DL); 1.17 - if (!outputString.isEmpty()) { 1.18 - Content tagContent = new RawHtml(outputString); 1.19 - dlTags.addContent(tagContent); 1.20 - } 1.21 - methodsContentTree.addContent(dlTags); 1.22 + dlTags.addContent(tagContent); 1.23 + methodsContentTree.addContent(dlTags); // TODO: what if empty? 1.24 MethodDoc method = member; 1.25 if (method.name().compareTo("writeExternal") == 0 1.26 && method.tags("serialData").length == 0) {