osm: indent the generated KML file for better readability

(cherry picked from commit 1636da85d82644d923042c870aaedc5a29754aa6)
master
Antoine Beaupré 2012-08-09 02:04:06 -04:00 committed by Joey Hess
parent a12dc95883
commit 9aa888cadf
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ sub writekml($;$) {
foreach my $map (keys %waypoints) { foreach my $map (keys %waypoints) {
my $output; my $output;
my $writer = XML::Writer->new( OUTPUT => \$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->xmlDecl();
$writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2"); $writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2");
$writer->startTag("Document"); $writer->startTag("Document");