osm: indent the generated KML file for better readability
authorAntoine Beaupré <anarcat@koumbit.org>
Thu, 9 Aug 2012 06:04:06 +0000 (02:04 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 25 Aug 2012 14:45:21 +0000 (10:45 -0400)
(cherry picked from commit 1636da85d82644d923042c870aaedc5a29754aa6)

IkiWiki/Plugin/osm.pm

index 466006cbfb9463abd0bc7df481bbec064904d895..a7baa5f2b968ebb0464a787be7371a26a2f98423 100644 (file)
@@ -359,7 +359,7 @@ sub writekml($;$) {
        foreach my $map (keys %waypoints) {
                my $output;
                my $writer = XML::Writer->new( OUTPUT => \$output,
-                       DATA_MODE => 1, ENCODING => 'UTF-8');
+                       DATA_MODE => 1, DATA_INDENT => ' ', ENCODING => 'UTF-8');
                $writer->xmlDecl();
                $writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2");
                $writer->startTag("Document");