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

Format sitemap XML #11

Closed
kaihendry opened this issue Nov 23, 2016 · 3 comments · Fixed by #12

Comments

@kaihendry
Copy link

@kaihendry kaihendry commented Nov 23, 2016

I noticed by default the XML sitemap is just one long line. Therefore when diagnosing issues in https://www.google.com/webmasters/tools it only gives that line number as to an indicator to where my problem is:

My workaround is to use xmlstarlet fo sitemap1.xml > sitemap-formatted.xml so that the line numbers a sitemap test returns are useful. So I was thinking maybe stm could just pretty print the XML to begin with?

@ikeikeikeike

This comment has been minimized.

Copy link
Owner

@ikeikeikeike ikeikeikeike commented Nov 24, 2016

hi
You mean, it allows pretty formatting to all of output xml to begin with, by option like a sm.SetPretty(true) method ?"

@kaihendry

This comment has been minimized.

Copy link
Author

@kaihendry kaihendry commented Nov 24, 2016

Yes, exactly! So that when Google flags an issue on a line number it's easier to track down the problem.

ikeikeikeike added a commit that referenced this issue Nov 24, 2016
closes #11
Allows pretty formatting to output xml files.
@ikeikeikeike

This comment has been minimized.

Copy link
Owner

@ikeikeikeike ikeikeikeike commented Nov 24, 2016

Respond by #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.