Changeset 1720 in josm


Ignore:
Timestamp:
2009-07-02T02:04:40+02:00 (15 years ago)
Author:
framm
Message:

+ silently drop created_by tag on upload of any object (we have them in changesets now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r1670 r1720  
    169169            }
    170170            for (Entry<String, String> e : osm.keys.entrySet()) {
    171                 out.println("    <tag k='"+ XmlWriter.encode(e.getKey()) +
    172                         "' v='"+XmlWriter.encode(e.getValue())+ "' />");
     171                if (!("created_by".equals(e.getKey())))
     172                    out.println("    <tag k='"+ XmlWriter.encode(e.getKey()) +
     173                            "' v='"+XmlWriter.encode(e.getValue())+ "' />");
    173174            }
    174175            out.println("  </" + tagname + ">");
Note: See TracChangeset for help on using the changeset viewer.