2001-08-18 13:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 18 Aug 2001 20:23:31 +0000 (20:23 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 18 Aug 2001 20:23:31 +0000 (20:23 +0000)
* nnslashdot.el (nnslashdot-threaded-retrieve-headers):
slashdot 2.2 (not fully fixed yet).
(nnslashdot-request-article): Ditto.

lisp/ChangeLog
lisp/nnslashdot.el

index 2694590..3b11e92 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-18 13:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * nnslashdot.el (nnslashdot-threaded-retrieve-headers):
+       slashdot 2.2 (not fully fixed yet).
+       (nnslashdot-request-article): Ditto.
+
 2001-08-18  Simon Josefsson  <jas@extundo.com>
 
        * gnus-util.el (gnus-remassoc, gnus-update-alist-soft): Moved from
index 5bb4c6f..6377e37 100644 (file)
          (nnweb-insert (format nnslashdot-article-url
                                (nnslashdot-sid-strip sid)) t)
          (goto-char (point-min))
-         (search-forward "Posted by ")
-         (when (looking-at "<a[^>]+>\\([^<]+\\)")
+         (re-search-forward "Posted by[ \t\r\n]+")
+         (when (looking-at "<a[^>]+>[ \t\r\n]*\\([^<\r\n]+\\)")
            (setq from (nnweb-decode-entities-string (match-string 1))))
          (search-forward " on ")
          (setq date (nnslashdot-date-to-date
        (nnweb-insert (format nnslashdot-article-url
                              (nnslashdot-sid-strip sid)) t)
        (goto-char (point-min))
-       (search-forward "Posted by ")
-       (when (looking-at "<a[^>]+>\\([^<]+\\)")
+       (re-search-forward "Posted by[ \t\r\n]+")
+       (when (looking-at "<a[^>]+>[ \t\n\r]*\\([^<\r\n]+\\)")
          (setq from (nnweb-decode-entities-string (match-string 1))))
        (search-forward " on ")
        (setq date (nnslashdot-date-to-date
        (forward-line 2)
        (setq lines (count-lines (point)
                                 (re-search-forward
-                                 "A href=\"\\(http://slashdot.org\\)?/article")))
+                                 "&lt;&nbsp; <A href=\"\\(http://slashdot.org\\)?/article")))
        (push
         (cons
          1
            (when (numberp article)
              (if (= article 1)
                  (progn
-                   (re-search-forward "Posted by *<[^>]+>[^>]*<[^>]+> *on ")
+                   (re-search-forward 
+                    "Posted by[ \t\r\n]+<[^>]+>[ \t\r\n]*[^>]*[ \t\r\n]*<[^>]+> *[ \t\r\n]*on ")
                    (search-forward "<BR>")
                    (setq contents
                          (buffer-substring
                           (point)
                           (progn
                             (re-search-forward
-                             "<p>.*A href=\"\\(http://slashdot.org\\)?/article")
+                             "&lt;&nbsp;[ \t\r\n]*<A HREF=\"\\(\\(http:\\)?//slashdot\\.org\\)?/article")
                             (match-beginning 0)))))
                (search-forward (format "<a name=\"%d\">" (1- article)))
                (setq contents