Changeset 6898 in josm for trunk/src/org
- Timestamp:
- 2014-03-06T09:35:10+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r6897 r6898 114 114 String b = ""; 115 115 String full = ""; 116 String baseurlus = baseurl.replace("https:","http:");117 String baseurlse = baseurlus.replace("http:","https:");118 116 for (String line = in.readLine(); line != null; line = in.readLine()) { 119 117 full += line; … … 138 136 b += line.replaceAll("<img ", "<img border=\"0\" ") 139 137 .replaceAll("<span class=\"icon\">.</span>", "") 140 .replaceAll("href=\"/", "href=\"" + baseurlus + "/") 141 .replaceAll("href=\"/", "href=\"" + baseurlse + "/") 138 .replaceAll("href=\"/", "href=\"" + baseurl + "/") 142 139 .replaceAll(" />", ">") 143 140 + "\n";
Note:
See TracChangeset
for help on using the changeset viewer.