Minor improvement in splitter

I have noticed that Splitter places a single \n between the mapname and description in template.args, bur \r\n in most other places. In some Windows editors, this makes the layout inconsistent:
mapname: 60555001description: GB-Carlisle input-file: 60555001.osm.pbf
This doesn't matter, but it might be nice if (next time somebody is updating) they were made consistent, preferably with \r, so that they all appear on separate lines. Roger -- ------------------------------------------------------------------------ Roger Calvert ------------------------------------------------------------------------

Roger Calvert wrote
I have noticed that Splitter places a single \n between the mapname and description in template.args, bur \r\n in most other places. In some Windows editors, this makes the layout inconsistent:
mapname: 60555001description: GB-Carlisle input-file: 60555001.osm.pbf
This doesn't matter, but it might be nice if (next time somebody is updating) they were made consistent, preferably with \r, so that they all appear on separate lines.
Thanks for the hint. I am using Windows programs that automatically detect unix style line endings, so I never see this problem. It will be easy to fix that. Gerd -- View this message in context: http://gis.19327.n5.nabble.com/Minor-improvement-in-splitter-tp5743642p57436... Sent from the Mkgmap Development mailing list archive at Nabble.com.

I've committed r277 in the problem-list branch: Correct mixed line endings for Windows systems: - all lines in areas.list, areas.poly, and template.args are written with \r\n - all lines in the kml file are written with \n only The problem was caused by a mixture of println() and printf("... \n") and writer.format("...\n"). I think all files that are meant to be edited by the user should be written in the format that is used by the native editor (notepad.exe on Windows) I am going to release this as the trunk version tomorrow if I don't here about any problems, because it also contains a few other corrections and optimizations. Gerd -- View this message in context: http://gis.19327.n5.nabble.com/Minor-improvement-in-splitter-tp5743642p57436... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (2)
-
GerdP
-
Roger Calvert