- ::debug("rebuilding wiki..");
- foreach my $c (keys %setup) {
- $::config{$c}=::possibly_foolish_untaint($setup{$c})
- if defined $setup{$c} && ! ref $setup{$c};
+sub dumpvalues ($@) { #{{{
+ my $setup=shift;
+ my @ret;
+ while (@_) {
+ my $key=shift;
+ my %info=%{shift()};
+
+ next if $key eq "plugin" || $info{type} eq "internal";
+
+ push @ret, "\t# ".$info{description} if exists $info{description};
+
+ if (exists $setup->{$key} && defined $setup->{$key}) {
+ push @ret, dumpline($key, $setup->{$key}, $info{type}, "");
+ delete $setup->{$key};
+ }
+ elsif (exists $info{example}) {
+ push @ret, dumpline($key, $info{example}, $info{type}, "#");
+ }
+ else {
+ push @ret, dumpline($key, "", $info{type}, "#");
+ }