Ignore:
Timestamp:
2014-01-16T02:42:49+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #9547 - Remove multiple whitespaces inside values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java

    r6084 r6699  
    1919import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2020import org.openstreetmap.josm.data.osm.Relation;
     21import org.openstreetmap.josm.data.osm.Tag;
    2122
    2223/**
     
    7677            Map<String, String> newKeys = new HashMap<String, String>(keys);
    7778            for (Entry<String, String> e : keys.entrySet()) {
    78                 String v = e.getValue().trim();
    79                 String k = e.getKey().trim();
     79                String v = Tag.removeWhiteSpaces(e.getValue());
     80                String k = Tag.removeWhiteSpaces(e.getKey());
    8081                if(!e.getKey().equals(k)) {
    8182                    boolean drop = k.isEmpty() || v.isEmpty();
Note: See TracChangeset for help on using the changeset viewer.