Further empty <li> tweaks

* lisp/net/shr.el (shr-tag-li): When showing several empty
<li> elements, ensure that they really get inserted on a new line.
This commit is contained in:
Lars Magne Ingebrigtsen 2016-03-20 15:15:32 +01:00
parent 61b2e837d8
commit 78bcd42857
3 changed files with 7 additions and 1 deletions

View file

@ -1617,7 +1617,9 @@ The preference is a float determined from `shr-prefer-media-type'."
(put-text-property start (1+ start)
'shr-continuation-indentation shr-indentation)
(put-text-property start (1+ start) 'shr-prefix-length (length bullet))
(shr-generic dom)))))
(shr-generic dom))))
(unless (bolp)
(insert "\n")))
(defun shr-mark-fill (start)
;; We may not have inserted any text to fill.

View file

@ -0,0 +1 @@
<ol><li></li><li></li><li></li></ol>

View file

@ -0,0 +1,3 @@
1
2
3