This queue is for tickets about the Text-KwikiFormatish CPAN distribution.

Report information
The Basics
Id:
42090
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
RUZ [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
1.11
Fixed in:
(no value)

Attachments
Text-KwikiFormatish-1.11-respect_prefix_argument.patch



Subject: prefix option doesn't work
Subj. "prefix" is not used in format_wiki_link or in other functional code. -- Best regards, Ruslan.
Subject: [PATCH] prefix option doesn't work
Hello, Simple patch that fixes this issue. On Thu Jan 01 23:24:10 2009, RUZ wrote:
Show quoted text
> Subj. "prefix" is not used in format_wiki_link or in other functional
code.
Show quoted text
>
-- Best regards, Ruslan.
Only in Text-KwikiFormatish-1.11-my/: Makefile Only in Text-KwikiFormatish-1.11-my/: blib diff -ur Text-KwikiFormatish-1.11/lib/Text/KwikiFormatish.pm Text-KwikiFormatish-1.11-my/lib/Text/KwikiFormatish.pm --- Text-KwikiFormatish-1.11/lib/Text/KwikiFormatish.pm 2006-02-12 02:50:42.000000000 +0300 +++ Text-KwikiFormatish-1.11-my/lib/Text/KwikiFormatish.pm 2009-01-03 23:46:09.000000000 +0300 @@ -76,10 +76,9 @@ my ( $raw, %args ) = @_; # create instance of formatter - my $f = __PACKAGE__->new(); - - # translate Text::Wikiformat args to Kwiki formatter args - $f->{_node_prefix} = $args{prefix} if exists $args{prefix}; + my $f = __PACKAGE__->new( + exists $args{prefix}? (node_prefix => $args{prefix}): () + ); # do the deed return $f->process($raw); @@ -400,7 +399,8 @@ sub wiki_link_format { my ( $self, $text ) = @_; my $url = $self->escape($text); - my $wiki_link = qq{<a href="./$url">$text</a>}; + my $prefix = $self->{'_node_prefix'} || './'; + my $wiki_link = qq{<a href="$prefix$url">$text</a>}; return $wiki_link; } Only in Text-KwikiFormatish-1.11-my/: pm_to_blib
Thank you, Ruslan. I have no idea when I'll get around to patching this.
On Sat Jan 10 02:39:06 2009, IAN wrote:
Show quoted text
> Thank you, Ruslan. I have no idea when I'll get around to patching this.
If you have no objections on the patch then give me co-maint and I'll release a new version :) -- Best regards, Ruslan.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.