From: Lars Ingebrigtsen Date: Thu, 24 Dec 2015 13:00:38 +0000 (+0100) Subject: shr table rendering fix X-Git-Tag: emacs-25.0.90~398 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cc3de97ad37f634b859c1c1b3d1bce0961733a2a;p=emacs.git shr table rendering fix * shr.el (shr-tag-table): Allow rendering body-less tables that have headers. Backport: (cherry picked from commit b05471e42c17e02c56c87d7599ada0c124a5fe09) --- diff --git a/lisp/net/shr.el b/lisp/net/shr.el index a48d098fe26..dbf45b885da 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1582,7 +1582,7 @@ The preference is a float determined from `shr-prefer-media-type'." (shr-stylesheet (nconc (list (cons 'background-color bgcolor)) shr-stylesheet)) (nheader (if header (shr-max-columns header))) - (nbody (if body (shr-max-columns body))) + (nbody (if body (shr-max-columns body) 0)) (nfooter (if footer (shr-max-columns footer)))) (if (and (not caption) (not header)