X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fsave%2FKmlExporter.java;h=9d1c0789b4f4d9a3e6820f5883b7f7235bac74ab;hb=92dad5df664287acb51728e9ea599f150765d34a;hp=1de5fad5f7e7c5da20372dfcdc23bfa7ae2ee1b9;hpb=96b13866faa7559233689ce73e9de8041859bc2f;p=GpsPrune.git diff --git a/tim/prune/save/KmlExporter.java b/tim/prune/save/KmlExporter.java index 1de5fad..9d1c078 100644 --- a/tim/prune/save/KmlExporter.java +++ b/tim/prune/save/KmlExporter.java @@ -483,7 +483,7 @@ public class KmlExporter extends GenericFunction implements Runnable inWriter.write("\n\t"); if (_descriptionField != null && _descriptionField.getText() != null && !_descriptionField.getText().equals("")) { - inWriter.write(_descriptionField.getText()); + inWriter.write(XmlUtils.fixCdata(_descriptionField.getText())); } else { inWriter.write("Export from GpsPrune"); @@ -684,7 +684,7 @@ public class KmlExporter extends GenericFunction implements Runnable // Add timestamp (if any) to the list whenList.append(""); if (point.hasTimestamp()) { - whenList.append(point.getTimestamp().getText(Timestamp.Format.ISO8601)); + whenList.append(point.getTimestamp().getText(Timestamp.Format.ISO8601, null)); } whenList.append("\n"); // Add coordinates to the list