- Timestamp:
- 2018-03-18T23:36:36+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r12846 r13541 36 36 private boolean esc; 37 37 private final StringBuilder s = new StringBuilder(200); 38 private String valueStops = "\n\r\t"; 38 39 private int pos; 39 40 private final String data; … … 46 47 public TextAnalyzer(String text) { 47 48 pos = 0; 48 data = text;49 data = Utils.strip(text); 49 50 n = data.length(); 51 // fix #1604: allow space characters as value stops for single-line input only 52 if (data.indexOf('\r') == -1 && data.indexOf('\n') == -1) { 53 valueStops += " "; 54 } 50 55 } 51 56 … … 73 78 break; 74 79 } 75 v = parseString( "\n\r\t ");80 v = parseString(valueStops); 76 81 tags.put(k, v); 77 82 }
Note:
See TracChangeset
for help on using the changeset viewer.