Changeset 6642 in josm for trunk/src/org/openstreetmap/josm/tools/WikiReader.java
- Timestamp:
- 2014-01-06T15:57:41+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r6380 r6642 18 18 private final String baseurl; 19 19 20 /** 21 * Constructs a new {@code WikiReader} for the given base URL. 22 * @param baseurl The wiki base URL 23 */ 20 24 public WikiReader(String baseurl) { 21 25 this.baseurl = baseurl; … … 80 84 81 85 private String readLang(URL url) throws IOException { 82 BufferedReader in = Utils.openURLReader(url); 86 BufferedReader in; 87 try { 88 in = Utils.openURLReader(url); 89 } catch (IOException e) { 90 Main.addNetworkError(url, Utils.getRootCause(e)); 91 throw e; 92 } 83 93 try { 84 94 return readFromTrac(in, url); … … 124 134 // add a border="0" attribute to images, otherwise the internal help browser 125 135 // will render a thick border around images inside an <a> element 126 //127 136 b += line.replaceAll("<img ", "<img border=\"0\" ") 128 137 .replaceAll("<span class=\"icon\">.</span>", "")
Note:
See TracChangeset
for help on using the changeset viewer.