From d5b2dfd0e4fa3416f8396bb07f35c365e056648b Mon Sep 17 00:00:00 2001 From: Philippe Gauthier Date: Thu, 9 Aug 2012 02:23:10 +0000 Subject: [PATCH] Add Document tag to OSM plugin KML output (cherry picked from commit 519d35368e2f1e7fe1fce577fe7d71ef9bd5c07e) --- IkiWiki/Plugin/osm.pm | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5