Subject: | Section::Generic does not lift region blocks |
Hello,
I wanted to move around specific region blocks, and started by using
Section::Region. However, it flattened the para's children and wouldn't
accept nonpod regions...
After talking with you (rjbs) on IRC, we determined that the best
course of action would be to refactor Section::Generic to be able to do
this. It would entail developing a better selector mechanism.
Some background: I wanted to add hunks of POD for
Pod::Spell/Test::Spelling and it requires a certain format.
=for stopwords foo bar baz
or
=begin stopwords
foo
bar
baz
=end stopwords
And after some playing around I figured out that it required the
declaration *BEFORE* the pod that contains the stopwords is seen. The
default podweaver config will put this hunk in the "Leftovers" section,
and it will trip up the spellchecker when it sees invalid words in the
DESCRIPTION, which obviously is seen in the POD before the leftovers.
Trying to use Section::Region, it didn't work because the hunk was
considered nonpod. After hacking the code, it correctly moved the
stopwords hunk to the start ( I placed it before NAME ) but it stripped
the =for/=begin commands. This renders it ineffective for me :(
Thanks again for such a great dist!
--
~Apocalypse