From 4d5b87a89068f1ffe3c895c5a94bf9e74cf11cb8 Mon Sep 17 00:00:00 2001
From: j <0x006A@0x2620.org>
Date: Fri, 18 Jan 2008 16:26:21 +0000
Subject: [PATCH] fix typo
---
scrapeit/djangohtml.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scrapeit/djangohtml.py b/scrapeit/djangohtml.py
index 88fe5ec..3ecc8f2 100644
--- a/scrapeit/djangohtml.py
+++ b/scrapeit/djangohtml.py
@@ -71,7 +71,7 @@ def urlize(text, trim_url_limit=None, nofollow=False):
if middle.startswith('www.') or ('@' not in middle and not middle.startswith('http://') and \
len(middle) > 0 and middle[0] in string.letters + string.digits and \
(middle.endswith('.org') or middle.endswith('.net') or middle.endswith('.com'))):
- middle = '%s' % (middle, nofollow_attr, trim_url(anchor))
+ middle = '%s' % (middle, nofollow_attr, trim_url(middle))
if middle.startswith('http://') or middle.startswith('https://'):
middle = '%s' % (middle, nofollow_attr, trim_url(middle))
if '@' in middle and not middle.startswith('www.') and not ':' in middle \