From: Lars Magne Ingebrigtsen Date: Mon, 18 Jan 2016 19:37:44 +0000 (+0100) Subject: Fix shr table rendering of nested tables X-Git-Tag: emacs-25.0.90~134 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f838b76897329867a49271608beff1116625d59;p=emacs.git Fix shr table rendering of nested tables * shr.el (shr-table-body): Don't include all tbodies in nested tables in the levels above. --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 0703171a436..88041f7e553 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1600,7 +1600,9 @@ The preference is a float determined from `shr-prefer-media-type'." (shr-insert-table (shr-make-table dom sketch-widths t) sketch-widths))) (defun shr-table-body (dom) - (let ((tbodies (dom-by-tag dom 'tbody))) + (let ((tbodies (seq-filter (lambda (child) + (eq (dom-tag child) 'tbody)) + (dom-children dom)))) (cond ((null tbodies) dom)