From: Ralf Ertzinger Date: Thu, 4 Jun 2009 14:12:44 +0000 (+0200) Subject: Use the first occurance of
, the second one is used for ads X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=quotesite.git;a=commitdiff_plain;h=134915427cbf80a82868b173766a9c0da84b0fba Use the first occurance of
, the second one is used for ads --- diff --git a/quotesite/GermanBashGrabber.pm b/quotesite/GermanBashGrabber.pm index 8b52db9..919f015 100644 --- a/quotesite/GermanBashGrabber.pm +++ b/quotesite/GermanBashGrabber.pm @@ -58,6 +58,7 @@ sub _parse { if (exists($t->[1]->{'class'}) && ($t->[1]->{'class'} eq 'zitat')) { $metadata->{'CONTENT'} = $p->get_text('/div'); $metadata->{'CONTENT'} =~ s/^\s*//mg; + last; } }