소스 검색

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 14 년 전
부모
커밋
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