1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Tue May 14 10:14:54 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Tue May 14 10:14:54 2013 -0700 1.3 @@ -246,15 +246,11 @@ 1.4 if (doc instanceof MethodDoc) { 1.5 addMethodInfo((MethodDoc) doc, dl); 1.6 } 1.7 - TagletOutput output = new TagletOutputImpl(); 1.8 + TagletOutputImpl output = new TagletOutputImpl(); 1.9 TagletWriter.genTagOuput(configuration.tagletManager, doc, 1.10 configuration.tagletManager.getCustomTags(doc), 1.11 getTagletWriterInstance(false), output); 1.12 - String outputString = output.toString().trim(); 1.13 - if (!outputString.isEmpty()) { 1.14 - Content resultString = new RawHtml(outputString); 1.15 - dl.addContent(resultString); 1.16 - } 1.17 + dl.addContent(output.getContent()); 1.18 htmltree.addContent(dl); 1.19 } 1.20 1.21 @@ -266,11 +262,11 @@ 1.22 * @return true if there are tags to be printed else return false. 1.23 */ 1.24 protected boolean hasSerializationOverviewTags(FieldDoc field) { 1.25 - TagletOutput output = new TagletOutputImpl(); 1.26 + TagletOutputImpl output = new TagletOutputImpl(); 1.27 TagletWriter.genTagOuput(configuration.tagletManager, field, 1.28 configuration.tagletManager.getCustomTags(field), 1.29 getTagletWriterInstance(false), output); 1.30 - return (!output.toString().trim().isEmpty()); 1.31 + return !output.getContent().isEmpty(); 1.32 } 1.33 1.34 /**