Changeset 10051 in josm for trunk/src/org
- Timestamp:
- 2016-03-26T21:49:06+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r10000 r10051 281 281 * @return XML string 282 282 */ 283 pr ivateString toXml(IPrimitive o, boolean addBody) {283 protected final String toXml(IPrimitive o, boolean addBody) { 284 284 StringWriter swriter = new StringWriter(); 285 285 try (OsmWriter osmWriter = OsmWriterFactory.createOsmWriter(new PrintWriter(swriter), true, version)) { … … 302 302 * @return XML string 303 303 */ 304 pr ivateString toXml(Changeset s) {304 protected final String toXml(Changeset s) { 305 305 StringWriter swriter = new StringWriter(); 306 306 try (OsmWriter osmWriter = OsmWriterFactory.createOsmWriter(new PrintWriter(swriter), true, version)) { -
trunk/src/org/openstreetmap/josm/io/OsmWriter.java
r9970 r10051 239 239 240 240 public void visit(Changeset cs) { 241 out.print(" <changeset "); 242 out.print(" id='"+cs.getId()+'\''); 241 out.print(" <changeset id='"+cs.getId()+'\''); 243 242 if (cs.getUser() != null) { 244 out.print(" user='"+ cs.getUser().getName() +'\'');243 out.print(" user='"+ XmlWriter.encode(cs.getUser().getName()) +'\''); 245 244 out.print(" uid='"+cs.getUser().getId() +'\''); 246 245 }
Note:
See TracChangeset
for help on using the changeset viewer.