tag 641430 + confirmed upstream
thanks

On Tue, 13 Sep 2011 13:27:01 +0100, Simon McVittie wrote:

> The cause seems to be a couple of =head2 headings inside the OPTIONS =head1:
> 
>     =head1 OPTIONS
> 
>     =head2 General behaviour
> 
>     You can customize the usage of mpd-dynamic with the following options:
> 
>     =over 4
> 
>     =item -o[ld] <old>
> 
> Deleting the lines "=head2 General behaviour" and "=head2 Ratings" from
> the mpd-dynamic script works around this. I think Getopt::Euclid should
> really ignore those sub-headings, though.

Hm, this seems to be a deliberate change by upstream:

From Changes:

  - Required and optional arguments can now be put in a POD head section =head2,
    =head3 and =head4 for more flexibility

And from the code:

+    my $HEAD_START = qr{ ^=head[1-4]            }xms;
...
-    while ($man =~ m/^=head1 ($OPTIONS)  (.*?) $EOHEAD /gxms) {
+    while ($man =~ m/$HEAD_START ($OPTIONS)  (.*?) $HEAD_END /gxms) {


But I'm not sure if the side-effect that hits mpd-dynamic is also
done on purpose :)


Cheers,
gregor, forwarding the bug in a minute

-- 
 .''`.   Homepage: http://info.comodo.priv.at/ - PGP/GPG key ID: 0x8649AA06
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Die Quote: Nummer ans in Reykjavik

Attachment: signature.asc
Description: Digital signature

Reply via email to