[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 9fb185a: shr-tag-video bug fix
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] emacs-25 9fb185a: shr-tag-video bug fix |
Date: |
Mon, 04 Jan 2016 22:03:33 +0000 |
branch: emacs-25
commit 9fb185aff7b1f36c30bd157ec446d9bad104d1ee
Author: Lars Magne Ingebrigtsen <address@hidden>
Commit: Lars Magne Ingebrigtsen <address@hidden>
shr-tag-video bug fix
* shr.el (shr-tag-video): Protect against the `poster' being
empty.
---
lisp/net/shr.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 979b0ca..0703171 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1361,7 +1361,7 @@ The preference is a float determined from
`shr-prefer-media-type'."
(start (point)))
(unless url
(setq url (car (shr--extract-best-source dom))))
- (if image
+ (if (> (length image) 0)
(shr-tag-img nil image)
(shr-insert " [video] "))
(shr-urlify start (shr-expand-url url))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 9fb185a: shr-tag-video bug fix,
Lars Ingebrigtsen <=