Skip to content

Commit 8f86b64

Browse files
committed
Fix KML newlines on Windows
1 parent cdadba3 commit 8f86b64

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎gopro2gpx/gpshelper.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ def generate_KML(gps_points):
249249
s = "%s,%s,%s" % (p.longitude, p.latitude, p.elevation)
250250
lines.append(s)
251251

252-
coords = os.linesep.join(lines)
252+
coords = '\n'.join(lines)
253253
kml = kml_template % coords
254-
return(kml)
254+
return kml
255255

256256

257257
def generate_CSV_DashWare(gps_points):

0 commit comments

Comments
 (0)