Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser
In directory sc8-pr-cvs1:/tmp/cvs-serv13104
Modified Files:
Parser.java
Log Message:
Fixed bug #798553 setInputHtml does not set text.
Added ! (not) to the guard.
Index: Parser.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/Parser.java,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** Parser.java 1 Sep 2003 13:53:46 -0000 1.57
--- Parser.java 1 Sep 2003 19:20:35 -0000 1.58
***************
*** 1166,1176 ****
}
! /** Initializes the parser with the given input HTML String.
* @param inputHTML the input HTML that is to be parsed.
*/
! public void setInputHTML(String inputHTML) {
! if ("".equals(inputHTML)) {
! reader = new NodeReader(new StringReader(inputHTML),"");
! }
}
--- 1166,1177 ----
}
! /**
! * Initializes the parser with the given input HTML String.
* @param inputHTML the input HTML that is to be parsed.
*/
! public void setInputHTML (String inputHTML)
! {
! if (!"".equals (inputHTML))
! reader = new NodeReader (new StringReader (inputHTML), "");
}
|