Patch for bug in TextNode
Brought to you by:
derrickoswald
org.htmlparser.nodes.TextNode should be replaced:
/**
* Returns if the node consists of only white space.
* White space can be spaces, new lines, etc.
*/
public boolean isWhiteSpace()
{
String text;
text = mText;
if (null == text)
text = mPage.getText (getStartPosition (),
getEndPosition ());
if (text == null || text.trim().equals(""))
return true;
return false;
}
BUG in old version:
If mText is unchanged, it always return true.
same data as file
Logged In: YES
user_id=605407
Originator: NO
Applied to version 2.0.