diff options
| author | Lars Magne Ingebrigtsen | 2016-01-18 20:37:44 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2016-01-18 20:37:44 +0100 |
| commit | 2f838b76897329867a49271608beff1116625d59 (patch) | |
| tree | beb6d99b9f2938a50176a58f43fb7c4a74be2226 | |
| parent | 4e559f22a00b38e067cde7863635c96d8790e4b3 (diff) | |
| download | emacs-2f838b76897329867a49271608beff1116625d59.tar.gz emacs-2f838b76897329867a49271608beff1116625d59.zip | |
Fix shr table rendering of nested tables
* shr.el (shr-table-body): Don't include all tbodies in nested
tables in the levels above.
| -rw-r--r-- | lisp/net/shr.el | 4 |
1 files changed, 3 insertions, 1 deletions
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'." | |||
| 1600 | (shr-insert-table (shr-make-table dom sketch-widths t) sketch-widths))) | 1600 | (shr-insert-table (shr-make-table dom sketch-widths t) sketch-widths))) |
| 1601 | 1601 | ||
| 1602 | (defun shr-table-body (dom) | 1602 | (defun shr-table-body (dom) |
| 1603 | (let ((tbodies (dom-by-tag dom 'tbody))) | 1603 | (let ((tbodies (seq-filter (lambda (child) |
| 1604 | (eq (dom-tag child) 'tbody)) | ||
| 1605 | (dom-children dom)))) | ||
| 1604 | (cond | 1606 | (cond |
| 1605 | ((null tbodies) | 1607 | ((null tbodies) |
| 1606 | dom) | 1608 | dom) |