]> code.delx.au - gnu-emacs/commit
Fix <p> and <div> newlines with or without <li> in shr
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 20 Mar 2016 12:43:42 +0000 (13:43 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 20 Mar 2016 12:45:09 +0000 (13:45 +0100)
commit52ba24bdd913f6be8318c34b281c7ad727dee6ad
tree147299c1b2315319481b2eb06990dac8f8702352
parentb8ea08b037fb16395b90481162587706e71b487c
Fix <p> and <div> newlines with or without <li> in shr

* lisp/net/shr.el (shr-ensure-newline): Respect that we're in
a <li>, if we are, and don't insert newlines there.
(shr-ensure-paragraph): When mixing newlines and paragraph
ensurements, don't insert too many blank lines.
(shr-tag-div): A <div> shouldn't introduce a paragraph, but a
new line.
(cherry picked from commit 292921facaff2f02ac4e8602c1f7ecbdcfe7ef45)

Backport:
lisp/net/shr.el