diff --git a/lisp/org-html.el b/lisp/org-html.el index a2b82ed33..d80a852f9 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -565,6 +565,8 @@ This may also be a function, building and inserting the postamble.") (goto-char (point-min)) (while (org-search-forward-unenclosed (org-item-re) nil 'move) (goto-char (org-list-bottom-point)) + (when (looking-at (org-list-end-re)) + (replace-match "")) (insert "ORG-LIST-END\n"))) ;;;###autoload