diff --git a/PyTracker/WriteGPX.py b/PyTracker/WriteGPX.py
index cfd73d3..b461c30 100644
--- a/PyTracker/WriteGPX.py
+++ b/PyTracker/WriteGPX.py
@@ -13,29 +13,29 @@ The file musst be closed, otherwise the file will be incomplete
class WriteGPX:
- def __init__(self, filename):
- self.filename = filename
- self.header = '\n\
-\n\
+ def __init__(self, filename):
+ self.filename = filename
+ self.header = '\n\
+\n\
\n\
\n'
- self.footer = '\n\n\n'
-
- with open(self.filename,'a') as file:
- file.write(self.header)
-
- def write(self, lat, lon, ele, time):
- self.trackpoint = '\n\
+ self.footer = '\n\n\n'
+
+ with open(self.filename,'a') as file:
+ file.write(self.header)
+
+ def write(self, lat, lon, ele, time):
+ self.trackpoint = '\n\
%s\n\
\n\
\n' % (lat, lon, ele, time)
- with open(self.filename,'a') as file:
- file.write(self.trackpoint)
-
- def close(self):
- with open(self.filename,'a') as file:
- file.write(self.footer)
+ with open(self.filename,'a') as file:
+ file.write(self.trackpoint)
+
+ def close(self):
+ with open(self.filename,'a') as file:
+ file.write(self.footer)