Opened 16 years ago
Closed 16 years ago
#1624 closed enhancement (fixed)
[PATCH] use consistent line endings in GpxWriter
Reported by: | Owned by: | framm | |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
When opening a gpx file written by GpxWriter with i.e. Windows Notepad the formatting is broken. The small patch makes them consistent.
Attachments (1)
Change History (5)
by , 16 years ago
Attachment: | gpxwriter_lineending.diff added |
---|
comment:1 by , 16 years ago
Priority: | minor → trivial |
---|---|
Summary: | Patch: use consistent line endings in GpxWriter → [PATCH] use consistent line endings in GpxWriter |
Type: | defect → enhancement |
follow-up: 3 comment:2 by , 16 years ago
comment:3 by , 16 years ago
Replying to anonymous:
this will save \r\n on windows and \n on Linux (different on MacOS)
It's the desired behaviour?
Should always write \n or write platform specific line-ending character?
Currently there are both println(...) and print("\n") used for writing the file. The patch is supposed to unify it.
The parsers shouldn't bother either way, it's just a cosmetic error in the rare case that a human opens such a file.
this will save \r\n on windows and \n on Linux (different on MacOS)
It's the desired behaviour?
Should always write \n or write platform specific line-ending character?