Anonymous - 2006-04-15

TGWikiBrowser cannot escape a space char in WikiName.

To avoid this problem, the touchgraph plugin is modified so that space chars are converted into '%20'.
And, in the TGWikiBrouwser, all '%20' in labels are converted back to space chars.

To do this, I made the following patch.

-------------------
--- com/touchgraph/wikibrowser/TGWikiBrowser.java.orig    2006-04-13 19:11:29.000000000 +0900
+++ com/touchgraph/wikibrowser/TGWikiBrowser.java    2006-04-13 19:10:05.000000000 +0900
@@ -166,7 +166,7 @@

     private String generateNodeLabel(String labelOrUrl) {
         if(!labelOrUrl.startsWith("http://")) {       
-            return labelOrUrl; //It's a label           
+            return labelOrUrl.replaceAll("%20", " "); //It's a label           
         }
         else { // Create a label from the URL                                       
             String urlString = labelOrUrl;