[MPLUGIN-116] Improve XHTML compliance
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@657566 13f79535-47bb-0310-9956-ffa450edef68master
parent
a1cd7486f9
commit
6ddd1a4748
|
|
@ -172,17 +172,16 @@ public class PluginXdocGenerator
|
||||||
w.writeMarkup( "<strong>"+ getBundle( locale ).getString( "pluginxdoc.description" ) + "</strong>:" );
|
w.writeMarkup( "<strong>"+ getBundle( locale ).getString( "pluginxdoc.description" ) + "</strong>:" );
|
||||||
w.endElement(); //p
|
w.endElement(); //p
|
||||||
|
|
||||||
w.startElement( "p" );
|
|
||||||
if ( StringUtils.isNotEmpty( mojoDescriptor.getDescription() ) )
|
if ( StringUtils.isNotEmpty( mojoDescriptor.getDescription() ) )
|
||||||
{
|
{
|
||||||
w.writeMarkup( PluginUtils.makeHtmlValid( mojoDescriptor.getDescription() ) );
|
w.writeMarkup( PluginUtils.makeHtmlValid( mojoDescriptor.getDescription() ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
w.startElement( "p" );
|
||||||
w.writeText( getBundle( locale ).getString( "pluginxdoc.nodescription" ) );
|
w.writeText( getBundle( locale ).getString( "pluginxdoc.nodescription" ) );
|
||||||
}
|
|
||||||
|
|
||||||
w.endElement(); // p
|
w.endElement(); // p
|
||||||
|
}
|
||||||
|
|
||||||
writeGoalAttributes( mojoDescriptor, w );
|
writeGoalAttributes( mojoDescriptor, w );
|
||||||
|
|
||||||
|
|
@ -375,18 +374,16 @@ public class PluginXdocGenerator
|
||||||
w.writeMarkup( "<strong><a name=\"" + parameter.getName() + "\">" + parameter.getName() + "</a>:</strong>" );
|
w.writeMarkup( "<strong><a name=\"" + parameter.getName() + "\">" + parameter.getName() + "</a>:</strong>" );
|
||||||
w.endElement(); //p
|
w.endElement(); //p
|
||||||
|
|
||||||
String description = parameter.getDescription();
|
if ( StringUtils.isNotEmpty( parameter.getDescription() ) )
|
||||||
if ( StringUtils.isEmpty( description ) )
|
|
||||||
{
|
{
|
||||||
description = getBundle( locale ).getString( "pluginxdoc.nodescription" );
|
w.writeMarkup( PluginUtils.makeHtmlValid( parameter.getDescription() ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
description = PluginUtils.makeHtmlValid( description );
|
|
||||||
}
|
|
||||||
w.startElement( "p" );
|
w.startElement( "p" );
|
||||||
w.writeMarkup( description );
|
w.writeMarkup( getBundle( locale ).getString( "pluginxdoc.nodescription" ) );
|
||||||
w.endElement(); //p
|
w.endElement(); // p
|
||||||
|
}
|
||||||
|
|
||||||
w.startElement( "ul" );
|
w.startElement( "ul" );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue