浏览代码

List ending is replaced by a blank line during html export.

* org-html.el (org-export-html-preprocess): Replace `org-list-end-re'
  by a blank line during pre-process.
Nicolas Goaziou 15 年之前
父节点
当前提交
e3813fcfcb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lisp/org-html.el

+ 2 - 0
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