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).
This commit is contained in:
Lars Ingebrigtsen 2016-02-04 15:35:20 +11:00
parent 56ed4e1886
commit a43a1dcc3d

View file

@ -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))