Subject: | <br> tag should create whitespace for TEXT type |
hi!
quick report -- probably easiest if I demo it. This scraper:
use URI;
use Web::Scraper;
my $s_show = scraper { process "span.tableListing-date", date =>
'TEXT'; };
my $starturl = "http://www.ticketmaster.ie/venue/198299";
my $res = $s_show->scrape( URI->new($starturl));
use Data::Dumper; die "JMD ".Dumper($res);
runs against a Ticketmaster page with this HTML:
<span class="tableListing-date">Sat
06/10/07<br>20:00</span></td>
it should produce something like
JMD $VAR1 = {
'date' => 'Sat 06/10/07 20:00'
};
(or maybe with a \n.) instead it produces
JMD $VAR1 = {
'date' => 'Sat 06/10/0720:00'
};
note the missing whitespace in place of the <br>.
Web::Scraper is great fun btw, I'm amazed how easy this is ;)