Browse Source

org-feed: Fix RSS feed parsing when <item> as attributes

I've RSS feeds with <item foo="bar"> which does not work without that change.

Signed-off-by: Julien Danjou <julien@danjou.info>
Julien Danjou 15 years ago
parent
commit
3308155e23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-feed.el

+ 1 - 1
lisp/org-feed.el

@@ -583,7 +583,7 @@ containing the properties `:guid' and `:item-full-text'."
     (with-current-buffer buffer
       (widen)
       (goto-char (point-min))
-      (while (re-search-forward "<item>" nil t)
+      (while (re-search-forward "<item\\>.*?>" nil t)
 	(setq beg (point)
 	      end (and (re-search-forward "</item>" nil t)
 		       (match-beginning 0)))