]> git.eshelyaron.com Git - emacs.git/commit
Fix formatting of tables with thead/tfoot but no tbody
authorJD Smith <93749+jdtsmith@users.noreply.github.com>
Sat, 6 Jul 2024 13:22:33 +0000 (09:22 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Jul 2024 13:17:00 +0000 (15:17 +0200)
commit82a29bfd24076300b1b06ba94372dd29868fc607
treeb18c4ceea6a70f4c038d39ebd68a537b2fb754d1
parent99134a6ae7a628a2ce74e72c2968cbe5221ac095
Fix formatting of tables with thead/tfoot but no tbody

Correctly handle formatting of tables containing thead and/or tfoot, but
without any tbody, to prevent including thead/tfoot content twice within
the table's derived body.
* lisp/net/shr.el (shr--fix-tbody): Omit 'thead' and 'tfoot' from
implicit body.  (Bug#71685)
* test/lisp/net/shr-resources/table.html:
* test/lisp/net/shr-resources/table.txt: New tests for table rendering.

(cherry picked from commit 9625e4af9946436cea6ba3f41f6c384634bcc999)
lisp/net/shr.el
test/lisp/net/shr-resources/table.html [new file with mode: 0644]
test/lisp/net/shr-resources/table.txt [new file with mode: 0644]