Skip Menu |

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

Report information
The Basics
Id: 16511
Status: new
Priority: 0/
Queue: Text-Context

People
Owner: Nobody in particular
Requestors: scoles [...] pythian.com
Cc:
AdminCc:

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



From: "John Scoles" <scoles [...] pythian.com>
To: <bug-Text-Context [...] rt.cpan.org>
Subject: Is this a bug?
Date: Wed, 14 Dec 2005 14:02:57 -0500
I was attmepting to do this with you package foreach $key (@temp_array) { my $snippet = Text::Context->new($key, @keywords); $snippet->keywords(@keywords); print "<BR>Found string = $key"; print "<BR>".$snippet->as_html([-start=>"<B>",-end=>"</B>"]); } temp_array is a simple array of strings two things do not work here 1) it dose not search through all of the items in @keywords, If I use a single word or words like keywords('test','test 33') this workd. but not an array like @x=['test','test 33'] 2) enven when I get it to return my snippet I do not get <B>test<B> I always get (<span class="quoted">). Cheers John Scoles
Date: Thu, 15 Dec 2005 17:13:14 +0000
From: Tony Bowden <tony [...] kasei.com>
To: "scoles [...] pythian.com via RT" <bug-Text-Context [...] rt.cpan.org>
Subject: Re: [cpan #16511] Is this a bug?
RT-Send-Cc:
On Thu, Dec 15, 2005 at 10:09:50AM -0500, scoles@pythian.com via RT wrote: Show quoted text
> 1) it dose not search through all of the items in @keywords, If I use a single word or words like keywords('test','test 33') this workd. but not an array like @x=['test','test 33']
I suspect that @x = [ ... ] isn't doing what you think it is. Show quoted text
> 2) enven when I get it to return my snippet I do not get <B>test<B> I always get (<span class="quoted">).
: print "<BR>".$snippet->as_html([-start=>"<B>",-end=>"</B>"]); Those aren't the correct options. The correct tags are 'start' and 'end' not '-start' and '-end'. Tony