Browse Source

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 11 years ago
parent
commit
e3813fcfcb
1 changed files with 2 additions and 0 deletions
  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