diff options
Diffstat (limited to 'lisp/net/shr.el')
-rw-r--r-- | lisp/net/shr.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 07fcbebce08..2c8ff79763f 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1480,6 +1480,10 @@ The preference is a float determined from `shr-prefer-media-type'." (shr-ensure-paragraph) (let ((shr-list-mode 'ul)) (shr-generic dom)) + ;; If we end on an empty <li>, then make sure we really end on a new + ;; paragraph. + (unless (bolp) + (insert "\n")) (shr-ensure-paragraph)) (defun shr-tag-ol (dom) |