- if (! defined $curr_section || $curr_section ne $section) {
- $curr_section=$section;
- push @ret, "", "\t#", "\t# $section plugins", "\t#";
+ push @{$section_plugins{$section}}, $plugin;
+ if (@{$section_plugins{$section}} == 1) {
+ push @ret, "", "\t".("#" x 70), "\t# $section plugins",
+ sub {
+ wrap("\t# (", "\t# ",
+ join(", ", @{$section_plugins{$section}})).")"
+ },
+ "\t".("#" x 70);