(shr-tag-table): Really inhibit images inside the table.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 5 Oct 2010 14:52:28 +0000 (16:52 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 5 Oct 2010 14:52:28 +0000 (16:52 +0200)
lisp/ChangeLog
lisp/shr.el

index a0f9251..f375d91 100644 (file)
@@ -2,6 +2,7 @@
 
        * shr.el (shr-find-elements): New function.
        (shr-tag-table): Put all the images after the table.
 
        * shr.el (shr-find-elements): New function.
        (shr-tag-table): Put all the images after the table.
+       (shr-tag-table): Really inhibit images inside the table.
 
        * mm-decode.el (mm-shr): Bind shr-blocked-images to
        gnus-blocked-images.
 
        * mm-decode.el (mm-shr): Bind shr-blocked-images to
        gnus-blocked-images.
index d6eb19e..9d0aaef 100644 (file)
@@ -414,11 +414,11 @@ Return a string with image data."
   (shr-ensure-paragraph)
   (setq cont (or (cdr (assq 'tbody cont))
                 cont))
   (shr-ensure-paragraph)
   (setq cont (or (cdr (assq 'tbody cont))
                 cont))
-  (let* ((columns (shr-column-specs cont))
+  (let* ((shr-inhibit-images t)
+        (columns (shr-column-specs cont))
         (suggested-widths (shr-pro-rate-columns columns))
         (sketch (shr-make-table cont suggested-widths))
         (suggested-widths (shr-pro-rate-columns columns))
         (sketch (shr-make-table cont suggested-widths))
-        (sketch-widths (shr-table-widths sketch (length suggested-widths)))
-        (shr-inhibit-images t))
+        (sketch-widths (shr-table-widths sketch (length suggested-widths))))
     (shr-insert-table (shr-make-table cont sketch-widths t) sketch-widths))
   (dolist (elem (shr-find-elements cont 'img))
     (shr-tag-img (cdr elem))))
     (shr-insert-table (shr-make-table cont sketch-widths t) sketch-widths))
   (dolist (elem (shr-find-elements cont 'img))
     (shr-tag-img (cdr elem))))