[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexer/nodes TagNode.java,1.13,1.14
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-10-03 00:20:56
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/nodes In directory sc8-pr-cvs1:/tmp/cvs-serv2396/lexer/nodes Modified Files: TagNode.java Log Message: Updated tag line numbers test. ***** Line numbers reported by tags are now zero based, not one based. ***** Strip off possible ending slash in tag name. Index: TagNode.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/nodes/TagNode.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** TagNode.java 2 Oct 2003 23:48:53 -0000 1.13 --- TagNode.java 3 Oct 2003 00:20:44 -0000 1.14 *************** *** 365,369 **** * <em> * Note: This value is converted to uppercase and does not ! * begin with "/" if it is an end tag. * To get at the original text of the tag name use * {@link #getRawTagName getRawTagName()}. --- 365,370 ---- * <em> * Note: This value is converted to uppercase and does not ! * begin with "/" if it is an end tag. Nor does it end with ! * a slash in the case of an XML type tag. * To get at the original text of the tag name use * {@link #getRawTagName getRawTagName()}. *************** *** 387,390 **** --- 388,393 ---- if (ret.startsWith ("/")) ret = ret.substring (1); + if (ret.endsWith ("/")) + ret = ret.substring (0, ret.length () - 1); } } |