[Htmlparser-cvs] WikiCapturer/src/org/htmlparser/wikicapturer PhpWikiVisitor.java,1.3,1.4
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-05-12 00:59:28
|
Update of /cvsroot/htmlparser/WikiCapturer/src/org/htmlparser/wikicapturer In directory sc8-pr-cvs1:/tmp/cvs-serv6028/WikiCapturer/src/org/htmlparser/wikicapturer Modified Files: PhpWikiVisitor.java Log Message: Change the javadoc reference in the shipped documentation to reference local javadocs. Index: PhpWikiVisitor.java =================================================================== RCS file: /cvsroot/htmlparser/WikiCapturer/src/org/htmlparser/wikicapturer/PhpWikiVisitor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PhpWikiVisitor.java 5 May 2003 02:15:24 -0000 1.3 --- PhpWikiVisitor.java 12 May 2003 00:59:25 -0000 1.4 *************** *** 26,29 **** --- 26,30 ---- public static String ROOT_URL = "http://htmlparser.sourceforge.net/"; public static String IMAGE_URL = ROOT_URL + "images/"; + public static String JAVADOC_URL = ROOT_URL + "javadoc_1_3/"; public static String newline = System.getProperty ("line.separator"); *************** *** 122,125 **** --- 123,131 ---- linkTag.setLink (currentLink); capturedHtml.append (linkTag.toHtml()); + } + else if (-1 != (index = currentLink.indexOf (JAVADOC_URL))) + { // translate the (only) javadoc link + capturedHtml.append ("<a CLASS=\"namedurl\" HREF=\"../javadoc/index.html\"><span STYLE=\"white-space: nowrap\">Javadocs</span></a>"); + return; } else if (currentLink.indexOf("http")==-1) |