Inherited a list of "issues" with xmlsitemap from another employee. Top of the list: "no line brakes"

Spelling aside, I guess those PHP_EOL characters are kind of superfluous in an XML document meant for bots.

Will attach a patch that adds a "Remove linebreaks from the sitemap." advanced option.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DanaRoseRoss’s picture

As promised

Dave Reid’s picture

Version: 6.x-2.0-beta1 » 7.x-2.x-dev
Status: Needs review » Needs work

I'm not sure why this is even a problem though. Yes, they add one additional character per line, but it makes it much easier for me and users to quickly check out and debug. Patches must be applied to 7.x-2.x-dev first, then backported.

DanaRoseRoss’s picture

Yeah, that's why I made it an option. Best I can figure out, there was a problem with one sitemap validator that freaked out over whitespace & linebreaks earlier this year. Probably not an issue anymore, and it's valid XML with or without. I guess you could make the argument it's saving a few pennies on bandwidth.

I'll look into making this a 7.x patch & then backporting next week. It's a slow time for us right now anyway.