aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2012-08-09 02:04:06 -0400
committerJoey Hess <joey@kitenet.net>2012-08-25 10:45:21 -0400
commit9aa888cadfc6ab76a1bb938315ed04f34864a562 (patch)
tree1b49b22c0fe339b075b32f45518eb8b1b6feede5 /IkiWiki/Plugin
parenta12dc958839ee684fc5755c371a9b3c5a917e88c (diff)
downloadikiwiki-9aa888cadfc6ab76a1bb938315ed04f34864a562.tar
ikiwiki-9aa888cadfc6ab76a1bb938315ed04f34864a562.tar.gz
osm: indent the generated KML file for better readability
(cherry picked from commit 1636da85d82644d923042c870aaedc5a29754aa6)
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/osm.pm2
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");