Changeset 14721 in josm
- Timestamp:
- 2019-01-23T07:35:49+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r14706 r14721 550 550 withErrors.put(p, "EV"); 551 551 } 552 final String ERR_TYPE_SPACE= "SPACE";553 if ((value.startsWith(" ") || value.endsWith(" ")) && !withErrors.contains(p, ERR_TYPE_SPACE)) {552 final String errTypeSpace = "SPACE"; 553 if ((value.startsWith(" ") || value.endsWith(" ")) && !withErrors.contains(p, errTypeSpace)) { 554 554 errors.add(TestError.builder(this, Severity.WARNING, INVALID_SPACE) 555 555 .message(tr("Property values start or end with white space"), s, key) 556 556 .primitives(p) 557 557 .build()); 558 withErrors.put(p, ERR_TYPE_SPACE);559 } 560 if (value.contains(" ") && !withErrors.contains(p, ERR_TYPE_SPACE)) {558 withErrors.put(p, errTypeSpace); 559 } 560 if (value.contains(" ") && !withErrors.contains(p, errTypeSpace)) { 561 561 errors.add(TestError.builder(this, Severity.WARNING, MULTIPLE_SPACES) 562 562 .message(tr("Property values contain multiple white spaces"), s, key) 563 563 .primitives(p) 564 564 .build()); 565 withErrors.put(p, ERR_TYPE_SPACE);565 withErrors.put(p, errTypeSpace); 566 566 } 567 567 if (!value.equals(Entities.unescape(value)) && !withErrors.contains(p, "HTML")) {
Note:
See TracChangeset
for help on using the changeset viewer.