Changeset 10378 in josm for trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
- Timestamp:
- 2016-06-15T10:30:37+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r10308 r10378 125 125 while (pos < n) { 126 126 c = data.charAt(pos); 127 if (c == '\t' || c == '\n' 127 if (c == '\t' || c == '\n' || c == ' ') { 128 128 pos++; 129 129 } else if (c == '=') { … … 177 177 String k; 178 178 String v; 179 for (String 179 for (String line: lines) { 180 180 if (line.trim().isEmpty()) continue; // skip empty lines 181 181 Matcher m = p.matcher(line); … … 195 195 if (!tags.isEmpty()) { 196 196 return tags; 197 } 197 } else { 198 198 return null; 199 199 }
Note:
See TracChangeset
for help on using the changeset viewer.