Changeset 5937 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2013-05-07T13:54:57+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r5936 r5937 100 100 boolean skip = false; 101 101 String b = ""; 102 String full = ""; 102 103 for (String line = in.readLine(); line != null; line = in.readLine()) { 104 full += line; 103 105 if (line.contains("<div id=\"searchable\">")) { 104 106 inside = true; … … 121 123 // 122 124 b += line.replaceAll("<img ", "<img border=\"0\" ") 125 .replaceAll("<span class=\"icon\">.</span>", "") 123 126 .replaceAll("href=\"/", "href=\"" + baseurl + "/") 124 127 .replaceAll(" />", ">") … … 134 137 || b.indexOf(" does not exist. You can create it here.</p>") >= 0) 135 138 return ""; 139 if(b.isEmpty()) 140 b = full; 136 141 return "<html><base href=\""+url.toExternalForm() +"\"> " + b + "</html>"; 137 142 }
Note:
See TracChangeset
for help on using the changeset viewer.