fix help content generation from <pre> tag

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/branches/MPLUGIN-189@1337408 13f79535-47bb-0310-9956-ffa450edef68
master
Olivier Lamy 2012-05-11 23:06:56 +00:00
parent a9bb0f6571
commit 6b38de8036
2 changed files with 9 additions and 3 deletions

View File

@ -148,8 +148,14 @@ public class PluginDescriptorGenerator
w.startElement( "plugin" );
PluginUtils.element( w, "name", pluginDescriptor.getName() );
PluginUtils.element( w, "description", pluginDescriptor.getDescription() );
if ( cleanDescription )
{
PluginUtils.element( w, "description", PluginUtils.toText( pluginDescriptor.getDescription() ) );
}
else
{
PluginUtils.element( w, "description", pluginDescriptor.getDescription() );
}
PluginUtils.element( w, "groupId", pluginDescriptor.getGroupId() );

View File

@ -715,7 +715,7 @@ public final class PluginUtils
String text;
if ( preformatted > 0 )
{
text = data.replace( ' ', '\u00A0' );
text = data;
}
else
{