Changeset 3013 in josm


Ignore:
Timestamp:
Feb 18, 2010 11:20:42 AM (3 years ago)
Author:
Gubaer
Message:

fixed #4439: droping spaces in keys or value automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java

    r3002 r3013  
    359359            // tag name holds an empty key. Don't apply it to the selection. 
    360360            // 
    361             if (tag.getName().trim().equals("")) { 
     361            if (tag.getName().trim().equals("") || tag.getValue().trim().equals("")) { 
    362362                continue; 
    363363            } 
    364             // tag has an empty value => don't apply the tag 
    365             // 
    366             if (tag.getValue().trim().equals("")) { 
    367                 continue; 
    368             } 
    369             tags.put(tag.getName(), tag.getValue()); 
     364            tags.put(tag.getName().trim(), tag.getValue().trim()); 
    370365        } 
    371366    } 
Note: See TracChangeset for help on using the changeset viewer.