The following issue has been updated:
Updater: dion gillard (mailto:[EMAIL PROTECTED])
Date: Wed, 20 Aug 2003 1:47 AM
Changes:
Fix Version changed to 1.1
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-696&page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-696
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-696
Summary: the whitespace detector in the html2xdoc plugin is too loose.
Type: Bug
Status: Unassigned
Priority: Major
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin-other
Fix Fors:
1.1
Versions:
1.0-beta-10
Assignee:
Reporter:
Created: Tue, 19 Aug 2003 8:27 PM
Updated: Wed, 20 Aug 2003 1:47 AM
Environment: windows
Description:
In an html document w/ the following construct,
<p><font face="Courier New">SQL></font></p>
the method Html2XdocBean.isWhiteSpace() returns true.
The following change would prevent this:
protected boolean isWhitespace(Node node) {
if (node instanceof CharacterData) {
String text = node.getText();
return text.trim().length() <= 0;
}
if (node instanceof Element) {
String name = node.getName();
if (name.equals("p")) {
// Add this test
if (((Element)node).isTextOnly()) {
String text = node.getText();
return text.trim().length() <= 0;
}
}
if (name.equals("br")) {
return true;
}
}
return false;
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]