summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2005-08-26 14:30:08 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2005-08-26 14:30:08 +0000
commit2298509476727c7b67b6e9f1623d953c44c71853 (patch)
tree3cfb9a8d3769674c0f316f875d3e93ad685c3d21 /lib
parent34963a00abbd92d4fec6d062fd9e9239996e41a3 (diff)
downloadfeed2imap-2298509476727c7b67b6e9f1623d953c44c71853.tar.gz
feed2imap-2298509476727c7b67b6e9f1623d953c44c71853.tar.bz2
feed2imap-2298509476727c7b67b6e9f1623d953c44c71853.zip
html2text bug with <a> without href
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@56 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/html2text-parser.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/feed2imap/html2text-parser.rb b/lib/feed2imap/html2text-parser.rb
index a6bf400..51bebfe 100644
--- a/lib/feed2imap/html2text-parser.rb
+++ b/lib/feed2imap/html2text-parser.rb
@@ -62,7 +62,9 @@ class HTML2TextParser < SGMLParser
@href = a[1]
end
end
- @links << @href.gsub(/^("|'|)(.*)("|')$/,'\2')
+ if @href
+ @links << @href.gsub(/^("|'|)(.*)("|')$/,'\2')
+ end
end
end