Update of /cvsroot/nice/Nice/src/nice/tools/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5762/src/nice/tools/doc
Modified Files:
htmlwriter.nice
Log Message:
Implement String.replaceAll(String,String) so that we do not require JDK 1.4
to run nicedoc.
Index: htmlwriter.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/doc/htmlwriter.nice,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** htmlwriter.nice 13 Feb 2004 16:15:44 -0000 1.2
--- htmlwriter.nice 17 Feb 2004 12:13:02 -0000 1.3
***************
*** 206,210 ****
*/
String htmlSafe(String s) {
! return s.replaceAll("<", "<").replaceAll(">", ">");
}
--- 206,212 ----
*/
String htmlSafe(String s) {
! return
! nice.tools.util.JDK.replaceAll
! (nice.tools.util.JDK.replaceAll(s, "<", "<"), ">", ">");
}
|