Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Pod-ProjectDocs CPAN distribution.

Report information
The Basics
Id: 35478
Status: resolved
Priority: 0/
Queue: Pod-ProjectDocs

People
Owner: Nobody in particular
Requestors: bitcard_ok [...] alvar.a-blast.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.35
Fixed in: (no value)



Subject: Conflict with "#<<<": This also used by Perltidy (patch included)
Hi, the marker #<<< is also used by Perltidy to indicate a block, which should not get reformatted. This conflicts with Pod::ProjectDoc, which dies at in Parser.pm at line 131 with "gotcha" when there is such a marker in a file ... Attached there is a patch for Parser.pm (and the new Parser.pm) , which changes the Pod::ProjectDocs marker to #<<<PPD< and Show quoted text
>PPD>>>
Ciao Alvar
Subject: Parser.pm

Message body is not shown because it is too large.

Subject: Pod-ProjectDocs__Parser.pm.diff
71c71 < $self->{TopLinks} = qq(<p><a href="#<<<G?TOP>>>" class="toplink">Top</a></p>) unless defined $self->{TopLinks}; --- > $self->{TopLinks} = qq(<p><a href="#<<<PPD<G?TOP>PPD>>>" class="toplink">Top</a></p>) unless defined $self->{TopLinks}; 126c126 < $self->{buffer} =~ s/<<<G\?TOP>>>/$self->{FirstAnchor}/ge; --- > $self->{buffer} =~ s/<<<PPD<G\?TOP>PPD>>>/$self->{FirstAnchor}/ge; 130,131c130,132 < $self->{buffer} =~ s/#<<<(.*?)>>>/'#' . $self->_findSection($1)/eg; < die "gotcha" if $self->{buffer} =~ /#<<</; --- > $self->{buffer} =~ s/#<<<PPD<(.*?)>PPD>>>/'#' . $self->_findSection($1)/eg; > die "gotcha, found my marker '#<<<PPD<' in file '$self->{_INFILE}'" if $self->{buffer} =~ /#<<<PPD</; > 565c566 < $string = qq(<a href="#<<<$targ>>>">$text</a>); --- > $string = qq(<a href="#<<<PPD<$targ>PPD>>>">$text</a>);
Hello Alvar, this is fixed in https://github.com/mgruner/p5-pod-projectdocs/commit/eb34d45e24d6605a87ba521dc26eca7b232ce28f, will be in upcoming 0.42. Best regards, Martin Am Mo 28. Apr 2008, 06:29:06, alvar-f schrieb: Show quoted text
> Hi, > > the marker #<<< is also used by Perltidy to indicate a block, which > should not get > reformatted. > > This conflicts with Pod::ProjectDoc, which dies at in Parser.pm at > line 131 with "gotcha" when > there is such a marker in a file ... > > Attached there is a patch for Parser.pm (and the new Parser.pm) , > which changes the > Pod::ProjectDocs marker to > > #<<<PPD< > > and >
> >PPD>>>
> > > Ciao > Alvar