Hello,
Google shows that it's normal for prettify() to add CRs to each string, but it has an impact when loading a GPX file into maps.
===========
<wpt lat="48.469284100" lon="2.706686600">
<name>
Blah
</name>
</wpt>
===========
Is there a simpler way to get rid of them than calling Tidy?
Thank you.
with open(OUTPUTFILE, "w",) as file:
#NOK
#file.write(soup.prettify(formatter=None))
#OK
file.write(str(soup))
#Hack to remove unwanted CRs in <name>
print(subprocess.run(["c:\\tidy.exe", "-language","en_us", "-utf8", "-indent", "-xml", "-modify", f"{OUTPUT_FULLPATH}"], shell=True))