From fe2fe5aa4b3f1b852d30b998751798bf5565aeb0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 26 Jul 2008 01:58:36 -0400 Subject: improve formatting --- IkiWiki/Setup/Standard.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'IkiWiki/Setup') diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 2420a6644..dd9368986 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -18,6 +18,8 @@ sub generate (@) { #{{{ eval q{use Data::Dumper}; error($@) if $@; local $Data::Dumper::Terse=1; + local $Data::Dumper::Sortkeys=1; + local $Data::Dumper::Pad="\t"; my @ret="#!/usr/bin/perl # Setup file for ikiwiki. @@ -53,6 +55,7 @@ use IkiWiki::Setup::Standard {"; my $dumpedvalue=Dumper($value); chomp $dumpedvalue; + $dumpedvalue=~/^\t//; push @ret, "\t$prefix$key=$dumpedvalue,"; } push @ret, ""; -- cgit v1.2.3