1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/LegacyTaglet.java Tue May 14 10:14:56 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/taglets/LegacyTaglet.java Tue May 14 10:14:57 2013 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -26,6 +26,8 @@ 1.11 package com.sun.tools.doclets.internal.toolkit.taglets; 1.12 1.13 import com.sun.javadoc.*; 1.14 +import com.sun.tools.doclets.formats.html.markup.RawHtml; 1.15 +import com.sun.tools.doclets.internal.toolkit.Content; 1.16 1.17 /** 1.18 * This taglet acts as a wrapper to enable 1.19 @@ -115,20 +117,20 @@ 1.20 /** 1.21 * {@inheritDoc} 1.22 */ 1.23 - public TagletOutput getTagletOutput(Tag tag, TagletWriter writer) 1.24 + public Content getTagletOutput(Tag tag, TagletWriter writer) 1.25 throws IllegalArgumentException { 1.26 - TagletOutput output = writer.getOutputInstance(); 1.27 - output.setOutput(legacyTaglet.toString(tag)); 1.28 + Content output = writer.getOutputInstance(); 1.29 + output.addContent(new RawHtml(legacyTaglet.toString(tag))); 1.30 return output; 1.31 } 1.32 1.33 /** 1.34 * {@inheritDoc} 1.35 */ 1.36 - public TagletOutput getTagletOutput(Doc holder, TagletWriter writer) 1.37 + public Content getTagletOutput(Doc holder, TagletWriter writer) 1.38 throws IllegalArgumentException { 1.39 - TagletOutput output = writer.getOutputInstance(); 1.40 - output.setOutput(legacyTaglet.toString(holder.tags(getName()))); 1.41 + Content output = writer.getOutputInstance(); 1.42 + output.addContent(new RawHtml(legacyTaglet.toString(holder.tags(getName())))); 1.43 return output; 1.44 } 1.45 }