summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2010-07-11 15:17:58 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2010-09-01 19:05:44 +0200
commite3813fcfcb3a6e5ccc9b81e7ea818bd6f9a74042 (patch)
treee8bdd725f7c57dffbf05a4de7d9cdf00dd85c9fb
parenta0a86fbba00ad97b2692b75949579022c06f19c5 (diff)
downloadorg-mode-e3813fcfcb3a6e5ccc9b81e7ea818bd6f9a74042.tar.gz
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.
-rw-r--r--lisp/org-html.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/org-html.el b/lisp/org-html.el
index a2b82ed..d80a852 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