Skip Menu |

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

Report information
The Basics
Id: 63860
Status: resolved
Priority: 0/
Queue: Pod-Advent

People
Owner: davidrw [...] cpan.org
Requestors: jpierce [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.22
Fixed in: 0.23



RT#63525 wasn't implemented quite how I thought, the current version uses the possibly abbreviated text as the search cpan query. This patch turns M<App::perlzonji|perlzonji> into <tt><a href="http://search.cpan.org/perldoc?App::perlzonji"><tt title="App::perlzonji">perlzonji</tt></a></tt> The title itself isn't necessarily required (they can view the URL when hovering) but not bad. The double tt is odd... if keeping the title, apply it to the anchor instead?
Subject: patch
Download patch
application/octet-stream 1k

Message body not shown because it is not plain text.

The patch was buggy, here's an unbuggy implementation of that M block }elsif( $mode eq 'M' ){ my($real, $alt); unless( ($real, $alt) = split /\|/, $text, 2 ){ $real = $text; } if( $M_values_seen{$real}++ ){ $parser->add( sprintf('<span title="%s">%s</span>', $real, $alt) ); }else{ $parser->add( sprintf('<a href="http://search.cpan.org/perldoc?%s" title="%s">%s</a>',$real,$real, (defined $alt ? $alt : $real) ) ); }
Show quoted text
> The title itself isn't necessarily required (they can view the URL > when hovering) but not bad. The double tt is odd... if keeping the > title, apply it to the anchor instead?
Oh, I guess it is necessary for subsequent M's, but the new supplied code handles it.
Fixed in v0.23