emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 a43a1dc: Insert complete alt texts when images ar


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] emacs-25 a43a1dc: Insert complete alt texts when images are disabled
Date: Thu, 04 Feb 2016 04:35:28 +0000

branch: emacs-25
commit a43a1dcc3d4a2e1eeecac43017a21779fb1557b3
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Insert complete alt texts when images are disabled
    
    * lisp/net/shr.el (shr-tag-img): When images are disabled, insert
    the complete alt/title string (bug#22293).
---
 lisp/net/shr.el |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index c600c74..611f0a9 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1409,9 +1409,7 @@ The preference is a float determined from 
`shr-prefer-media-type'."
              (and shr-blocked-images
                   (string-match shr-blocked-images url)))
          (setq shr-start (point))
-         (if (> (string-width alt) 8)
-             (shr-insert (truncate-string-to-width alt 8))
-           (shr-insert alt)))
+          (shr-insert alt))
         ((and (not shr-ignore-cache)
               (url-is-cached (shr-encode-url url)))
          (funcall shr-put-image-function (shr-get-image-data url) alt))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]