tkrajina / gpxpy

gpx-py is a python GPX parser. GPX (GPS eXchange Format) is an XML based file format for GPS tracks.
Apache License 2.0
993 stars 223 forks source link

Time node is missing based on whitespace formatting #179

Closed khargy closed 4 years ago

khargy commented 5 years ago

so if a trackpoint is formatted as follows:

            <trkpt lat="52.902352" lon="-118.099242">
                <ele>
                    1195.06 
                </ele>
                <time>
                    2018-09-19T14:17:17Z 
                </time>
            </trkpt>

The time node is lost. It seems like any whitespace before or after the time value will cause this issue Example.zip

tkrajina commented 4 years ago

https://github.com/tkrajina/gpxpy/blob/dev/test.py#L745