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 eae50a71438..4f64618c008 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1589,6 +1589,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) |
