Skip Menu |

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

Report information
The Basics
Id: 1263
Status: new
Priority: 0/
Queue: Pod-Pdf

People
Owner: Nobody in particular
Requestors: pcrow [...] hertz.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: top of page bug in Pod::Pdf
This is a great module. It makes my pod documents look quite professional. It even pointed out some errors in my POD source. While I was using it I did find one slight formatting problem. When a verbatim block (indicated by leading whitespace on each line) starts at the top of a new page, the font is not the fixed width font these blocks usually have. I took the liberty of making a minor fix in the VRB subroutine which is the only change I needed to make the formatting work correctly. Below is that routine in its revised form. The only change was moving the setFont call to after the block which deals with the page header. If you need any clarification, please contact me at this address. If you would rather have a valid patch against the current version on CPAN, I'll be happy to supply that instead. Thanks for a good module which is easy to use. Phil Crow Version info: Perl 5.6.1 from ActiveState Pod-Pdf-1.2 sub VRB { my ($str) = @_; just ("\n"); # # beginning of change comment # # This line: # setFont('Verbatim') unless $in_verbatim; # should probably appear below the new header block. # if ($ypos <= ($bottom_margin + $LF) and $more) { pageFooter(); pageHeader($h_str, $title); $bl = 0; prt("/F$pt[$p][0]$pt[$p][1] $fs Tf\n"); $fonts_used{"/F$pt[$p][0]$pt[$p][1]"} = ' '; @scratch_pad = ($pt[$p][0], $pt[$p][1]); } # # This placement worked for me: # setFont('Verbatim') unless $in_verbatim; # end of change comment $j = $p = 0; $jt[0] = $pt[0] = [@scratch_pad]; $sc[$p] = 'text'; setColor(); $xpos = $cLM + $indent; if ($in_verbatim) { $ypos -= $LF } elsif (!$in_verbatim and $bl) { $ypos -= $WS } $in_verbatim = 1; $in_text = $in_tab = $bl = 0; $zlf = 1; just($str); }
Date: Wed, 17 Jul 2002 12:32:10 +0100
To: via RT <bug-Pod-Pdf [...] rt.cpan.org>
From: Alan Fry <ajf [...] afco.demon.co.uk>
Subject: Re: [cpan #1263] top of page bug in Pod::Pdf
Show quoted text
>This message about Pod-Pdf was sent to you by PHILCROW via rt.cpan.org > >Full context and any attached attachments can be found at: ><URL: https://rt.cpan.org/Ticket/Display.html?id=1263 > > >This is a great module. It makes my pod documents look quite >professional. It even pointed out some errors in my POD source.
Many thanks. My apologies for slow reply but I have been away for a short while. Show quoted text
>While I was using it I did find one slight formatting problem. When >a verbatim block (indicated by leading whitespace on each line) >starts at the top of a new page, the font is not the fixed width >font these blocks usually have.
Right. Thanks for reporting the glitch. Show quoted text
>I took the liberty of making a minor fix in the VRB subroutine which >is the only change I needed to make the formatting work correctly. >Below is that routine in its revised form. The only change was >moving the setFont call to after the block which deals with the page >header.
I haven't yet had time (for the reasons above) to dig into this, but I'm sure you are right and deserve congratulations for sussing this out. Show quoted text
>If you need any clarification, please contact me at this address. >If you would rather have a valid patch against the current version >on CPAN, I'll be happy to supply that instead.
It's high time I put up a revision for there are a number of nasty bugs which need fixing. I will attend to this one too with grateful acknowledgements to you. Best, Alan