Gentlemen, let us observe what happens to the output one sees in reports
made to STDOUT (not the sitemaps themselves) by generateSitemap.php when
not all of the e.g.,
$wgSitemapNamespaces=array(NS_MAIN,NS_PROJECT,NS_TEMPLATE_TALK,NS_HELP_TALK,NS_CATEGORY_TALK,NS_USER);
in ones LocalSettings.php are populated:
0 () /home/jidanni/mediawiki/sitemap-mwabj-NS_0-0.xml.gz
4 (ABJ)11 (Template talk)13 (Help talk)15 (Category talk)2 (User) /home/jidanni/mediawiki/sitemap-mwabj-NS_2-0.xml.gz
The problem is if there are no items to print for a given namespace, the line
$this->output( "\t$this->fspath$filename\n" );
will not fire, thus no "\n" will get printed. Thus the next line just
gets stuck upon the first, garbling the report!
Version: 1.17.x
Severity: trivial