]> git.eshelyaron.com Git - emacs.git/commitdiff
Make <div> in <li> not insert extra newlines
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Feb 2016 07:06:36 +0000 (18:06 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Feb 2016 07:06:59 +0000 (18:06 +1100)
* lisp/net/shr.el (shr-tag-div): Make <div> in <li> not insert
extra newlines (bug#19587).

Backport:

(cherry picked from commit 379a846b8548dc32a9019ef0a37c02f62cd9bad1)

lisp/net/shr.el

index 66a9c04a8f6acec01c319529e54334d7d5286b95..b36dd56f09cb36c6ab771d23b631b46c2d74ca50 100644 (file)
@@ -1206,7 +1206,7 @@ ones, in case fg and bg are nil."
   (shr-ensure-paragraph))
 
 (defun shr-tag-div (dom)
-  (shr-ensure-newline)
+  (shr-ensure-paragraph)
   (shr-generic dom)
   (shr-ensure-newline))