diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 01:58:36 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 01:58:36 -0400 |
commit | fe2fe5aa4b3f1b852d30b998751798bf5565aeb0 (patch) | |
tree | 6256c18dbd9fba223531b5ed90796f4d88f95983 /IkiWiki/Setup | |
parent | 278ae9afea19b20058e7ed5290305ca69c71a649 (diff) | |
download | ikiwiki-fe2fe5aa4b3f1b852d30b998751798bf5565aeb0.tar ikiwiki-fe2fe5aa4b3f1b852d30b998751798bf5565aeb0.tar.gz |
improve formatting
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r-- | IkiWiki/Setup/Standard.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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, ""; |