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

Add indent option to writeGPX() #28

Open
bmy4415 opened this issue Sep 13, 2021 · 0 comments
Open

Add indent option to writeGPX() #28

bmy4415 opened this issue Sep 13, 2021 · 0 comments

Comments

@bmy4415
Copy link

bmy4415 commented Sep 13, 2021

Hi,

I think it is really great if we can use indent optionally.
I found code block https://github.com/himanshu-soni/gpx-parser/blob/master/src/main/java/me/himanshusoni/gpxparser/GPXWriter.java#L74-L80

I think we can easily add next 2 lines to use indent.

transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", Integer.toString(indent));

Here is the post I referenced

Thanks for your consideration in advance!
Jaewan

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

1 participant