Thanks. It looks like I might be able to to check for
<ul id="index"> and its closing </ul>.
Steve
On Tue, Sep 10, 2013 at 3:26 PM, Paul Liebert via RT <
bug-Perl-Tidy@rt.cpan.org> wrote:
Show quoted text> Queue: Perl-Tidy
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=88588 >
>
> There is no <div> tag, sorry. Here are the two snippets
>
>
>
> This version works with Perl::Tidy
>
> Pod::Html VERSION 1.0504
>
>
>
> <body style="background-color: white">
>
>
>
> <p><a name="__index__"></a></p>
>
> <!-- INDEX BEGIN -->
>
>
>
> <ul>
>
>
>
> <li><a href="#name">NAME</a></li>
>
> <li><a href="#synopsis">SYNOPSIS</a></li>
>
> <li><a href="#description">DESCRIPTION</a></li>
>
> <li><a href="#files">FILES</a></li>
>
> <li><a href="#options">OPTIONS</a></li>
>
> <li><a href="#pattern_capabilities">PATTERN
> CAPABILITIES</a></li>
>
> <li><a href="#function_capabilities">FUNCTION
> CAPABILITIES</a></li>
>
> <li><a href="#mda">MDA</a></li>
>
> <li><a href="#environment">ENVIRONMENT</a></li>
>
> <li><a href="#exit_status">EXIT STATUS</a></li>
>
> <li><a href="#see_also">SEE ALSO</a></li>
>
> <li><a href="#license_and_copyright">LICENSE AND
> COPYRIGHT</a></li>
>
> </ul>
>
> <!-- INDEX END -->
>
>
>
> <hr />
>
> <p>
>
> </p>
>
> <hr />
>
> <h1><a name="name">NAME</a></h1>
>
>
>
> ----------------------------------------------------------------------
>
>
>
> This version is missing the INDEX comments and is broken
>
> Pod::Html VERSION 1.15_02
>
>
>
> <body style="background-color: white">
>
>
>
>
>
>
>
> <ul id="index">
>
> <li><a href="#NAME">NAME</a></li>
>
> <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
>
> <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
>
> <li><a href="#FILES">FILES</a></li>
>
> <li><a href="#OPTIONS">OPTIONS</a></li>
>
> <li><a href="#PATTERN-CAPABILITIES">PATTERN CAPABILITIES</a></li>
>
> <li><a href="#FUNCTION-CAPABILITIES">FUNCTION CAPABILITIES</a></li>
>
> <li><a href="#MDA">MDA</a></li>
>
> <li><a href="#ENVIRONMENT">ENVIRONMENT</a></li>
>
> <li><a href="#EXIT-STATUS">EXIT STATUS</a></li>
>
> <li><a href="#SEE-ALSO">SEE ALSO</a></li>
>
> <li><a href="#LICENSE-AND-COPYRIGHT">LICENSE AND COPYRIGHT</a></li>
>
> </ul>
>
>
>
> <h1 id="NAME">NAME</h1>
>
>
>
>
>
> -Paul
>
>
>
> -----Original Message-----
>
> From: Steven Hancock via RT [mailto:bug-Perl-Tidy@rt.cpan.org]
>
> Sent: Tuesday, September 10, 2013 3:11 PM
>
> To: Liebert, Paul A
>
> Subject: Re: [rt.cpan.org #88588] INDEX END tag change in pod2html breaks
> perltidy -html
>
>
>
> <URL:
https://rt.cpan.org/Ticket/Display.html?id=88588 >
>
>
>
> Thanks, that's unfortunate. Pod::Html almost never changes. I haven't
>
> updated my Pod::Html yet to reproduce this, but do you think I could look
>
> for
>
>
>
> <div name="index"> instead if the <!-- INDEX BEGIN --> and the subsequent
>
>
>
> </div> instead of <!-- INDEX END -->
>
>
>
> as the termination?
>
>
>
> Steve
>
>
>
>
>
> On Tue, Sep 10, 2013 at 10:58 AM, Paul Liebert via RT <
>
> bug-Perl-Tidy@rt.cpan.org> wrote:
>
>
>
> > Tue Sep 10 13:58:38 2013: Request 88588 was acted upon.
>
> > Transaction: Ticket created by paauull
>
> > Queue: Perl-Tidy
>
> > Subject: INDEX END tag change in pod2html breaks perltidy -html
>
> > Broken in: 20130806
>
> > Severity: (no value)
>
> > Owner: Nobody
>
> > Requestors: paul.a.liebert@hp.com
>
> > Status: new
>
>
> >
>
> >
>
> > Running perltidy to generate html now produces error messages like
>
> >
>
> > Did not find INDEX END in pod2html output
>
> > print() on closed filehandle STDOUT at
>
> > /apps/perl-5.16.3/2.6x86_64/lib/5.16.3/x86_64-linux/IO/Handle.pm line
> 417.
>
> >
>
> > I have tracked this down to a change in pod2html. pod2html no longer
>
> > issues comment tags of <!-- INDEX BEGIN --> and <!-- INDEX END --> around
>
> > the index section. perltidy depends on these tags being present.
>
> >
>
> > This should reproduce the problem for any 'my_script' that has pod:
>
> >
>
> > perltidy -html -nnn -st my_script > my_html
>
> >
>
> > Perl::Tidy 1.74
>
> > Pod::Html 1.15_02
>
> >
>
> > This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux
>
> >
>
> >
>
> >
>
>
>
>