diff options
author | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-08-26 14:30:08 +0000 |
---|---|---|
committer | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-08-26 14:30:08 +0000 |
commit | 2298509476727c7b67b6e9f1623d953c44c71853 (patch) | |
tree | 3cfb9a8d3769674c0f316f875d3e93ad685c3d21 /lib/feed2imap | |
parent | 34963a00abbd92d4fec6d062fd9e9239996e41a3 (diff) | |
download | feed2imap-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.rb | 4 |
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 |