From: Lars Ingebrigtsen Date: Thu, 4 Feb 2016 04:35:20 +0000 (+1100) Subject: Insert complete alt texts when images are disabled X-Git-Tag: emacs-25.0.91~99 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a43a1dcc3d4a2e1eeecac43017a21779fb1557b3;p=emacs.git 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). --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index c600c745323..611f0a90f69 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))