Skip Menu |

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

Report information
The Basics
Id: 6065
Status: resolved
Priority: 0/
Queue: Pod-HtmlEasy

People
Owner: Nobody in particular
Requestors: slaven [...] rezic.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: 1.0000



Subject: More Pod::HtmlEasy problems
More problems I encountered when using podhtmleasy: * The E<quot> entity is ignored. * Itemized lists could be better rendered. For instance, the star in the following Pod snippet could be ignored: =item * The item text... And a feature request: is there an easy way to automatically create a link to a relative or other private path in preference to a link to perldoc.com? Regards, Slaven
[SREZIC - Mon Apr 19 05:32:15 2004]: Show quoted text
> More problems I encountered when using podhtmleasy: > > * The E<quot> entity is ignored. > > * Itemized lists could be better rendered. For instance, the star in > the following Pod snippet could be ignored: > > =item * > > The item text... > > And a feature request: is there an easy way to automatically create a > link to a relative or other private path in preference to a link to > perldoc.com? >
You can personalize the event handlers. The event for L<> can be set when creating the Pod::HtmlEasy object, defining the option on_L. Take a look in the POD, you will see and example of that. Regards, Graciliano M. P.
From: RJBS
[SREZIC - Mon Apr 19 05:32:15 2004]: Show quoted text
> * Itemized lists could be better rendered. For instance, the star in > the following Pod snippet could be ignored: > > =item *
This seems to be a real flaw in Pod::HtmlEasy, which is otherwise quite keen. The perlpod page in perldoc (or Camel Ch26) says, basically, that the first =item will define the format for the list. =item is "=item SYMBOL" not merely "=item NAME". HtmlEasy should support bullet and numbered lists. Implementing that in this framework strikes me, at first glance, as a pain. =over needs to know what list type it will be, and =item (probably) needs to get the paragraphs contained in it. Not supporting "=item *" lists easily is a big problem, though. Check out how much of Perl's and CPAN's modules' documentation uses them...
This sub is an ugly but effective way to perform "=item *" lists. _on_item => sub { my ( $this , $txt ) = @_ ; return "<li>" if $txt =~ /^(\*|<b>\*<\/b>)$/; return "<li>$txt</li>\n" ; }