Closed karenetheridge closed 9 years ago
Is it possible to combine the existing 'TYPES' section in the original with the generated
=head1 TYPES
section?
I have meant to include this behavior from the start, but I knew I could get by without it indefinitely, and was just waiting for some sucker to offer to write a patch.
I'd patch, but I don't know where to start.
Did I say sucker? I meant hero.
The new "=head1 TYPES" is created by this code:
my $container = Pod::Elemental::Element::Nested->new({
command => $self->header_command,
content => $self->header,
});
$self->__used_container($container);
You should make that code first look for any existing element like that (Pod::Elemental::Selectors may help?) and remove it from the document, making it the container instead.
Be considerate of what happens if it has children already.
rjbs
fixed by #28!
@wchristian my hero!
I've got this in my weaver.ini:
and this in my pod:
Which results in this woven pod:
Is it possible to combine the existing 'TYPES' section in the original with the generated
=head1 TYPES
section?I'd patch, but I don't know where to start.