Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata error in bounds #246

Closed
ealaz opened this issue Jan 23, 2022 · 1 comment
Closed

metadata error in bounds #246

ealaz opened this issue Jan 23, 2022 · 1 comment

Comments

@ealaz
Copy link

ealaz commented Jan 23, 2022

The metadata does not result in a valid xml file. Most codes will tolerate this but some (Garmin Homeport) will not, TYhe error is in bounds which has added space (linefeed). It can be corrected by modifying gpxfield.py as follows to remove the offending space & linefeed.
if tag:
if tag == 'bounds':
if tag_open:
body.append('>')
body.append('</' + tag + '>')
#print("tag,body:",tag,'\t',body)
else:
if tag_open:
body.append('>')
body.append('\n' + indent + '</' + tag + '>')
It is inelegant but it works.

@tkrajina
Copy link
Owner

#186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants