X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4708aeceb3ec518a00069ad7a112ab0a5596275c..9e0cbb73fe550d05e668d3584ef6f7981e781c8e:/IkiWiki/Setup/Standard.pm diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 0e640f8ac..c87fb80f5 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -28,7 +28,7 @@ sub dumpline ($$$$) { #{{{ local $Data::Dumper::Quotekeys=0; my $dumpedvalue; - if ($type eq 'boolean' || $type eq 'integer') { + if (($type eq 'boolean' || $type eq 'integer') && $value=~/^[0-9]+$/) { # avoid quotes $dumpedvalue=$value; } @@ -62,7 +62,7 @@ sub dumpvalues ($@) { #{{{ my $key=shift; my %info=%{shift()}; - next if $info{type} eq "internal"; + next if $info{type} eq "internal" || $key eq "plugin"; push @ret, "\t# ".$info{description} if exists $info{description};