True. One of those cases where the cost of the work-around is vastly cheaper
than the fix!

--hsm

-----Original Message-----
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:49 PM
To: Hugh S. Myers
Cc: Sean M. Burke; Pod-People
Subject: Re: Pod::HTML 1.04 end of the line?


Hugh S. Myers wrote:
> Reason I asked was that I just tracked down a long time bug and was
> wondering if I should raise a ruckus or wait out the next new thing.
Imagine
> if you will the =begin html/=end html pair. Now think of source code
> converted to html that you want to place between these two. Now think of
> what happens to all of your blank lines! The way the .pm is written,
> division into paragraphs happens before knowledge of the begin/end
markers,
> so any formatting that you had involving white space is at risk, since
they
> will go away!! Fixing this is as they say non-trivial.

The simple workaround is to do:

perl -pi -e 's|^|  |' example

before inserting it into the POD. This makes the whole code section a
single para.

I do it everywhere in POD.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Reply via email to