]> git.eshelyaron.com Git - emacs.git/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:43:42 +0000 (13:43 +0100)
commit292921facaff2f02ac4e8602c1f7ecbdcfe7ef45
treedf5c8b113992692374c9335f6422340cc6c10acd
parent21c89971c31d8f5c14814d2a18749495ed191d8f
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.
lisp/net/shr.el