From: Philippe Gauthier Date: Thu, 9 Aug 2012 02:23:10 +0000 (+0000) Subject: Add Document tag to OSM plugin KML output X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d5b2dfd0e4fa3416f8396bb07f35c365e056648b;p=ikiwiki.git Add Document tag to OSM plugin KML output (cherry picked from commit 519d35368e2f1e7fe1fce577fe7d71ef9bd5c07e) --- diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index 6ba2524d8..764767525 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -348,6 +348,7 @@ sub writekml($;$) { DATA_MODE => 1, ENCODING => 'UTF-8'); $writer->xmlDecl(); $writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2"); + $writer->startTag("Document"); # first pass: get the icons foreach my $name (keys %{$waypoints{$map}}) { @@ -407,6 +408,7 @@ sub writekml($;$) { $writer->endTag(); } $writer->endTag(); + $writer->endTag(); $writer->end(); writefile("pois.kml", $config{destdir} . "/$map", $output);