diff options
author | Antoine Beaupré <anarcat@koumbit.org> | 2012-08-09 02:04:06 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-25 10:45:21 -0400 |
commit | 9aa888cadfc6ab76a1bb938315ed04f34864a562 (patch) | |
tree | 1b49b22c0fe339b075b32f45518eb8b1b6feede5 /IkiWiki | |
parent | a12dc958839ee684fc5755c371a9b3c5a917e88c (diff) | |
download | ikiwiki-9aa888cadfc6ab76a1bb938315ed04f34864a562.tar ikiwiki-9aa888cadfc6ab76a1bb938315ed04f34864a562.tar.gz |
osm: indent the generated KML file for better readability
(cherry picked from commit 1636da85d82644d923042c870aaedc5a29754aa6)
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/osm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index 466006cbf..a7baa5f2b 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -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"); |