Browse Source

Open a new paragraph when closing a list in HTML and DocBook

Nicolas Goaziou 14 years ago
parent
commit
87c427981f
2 changed files with 6 additions and 2 deletions
  1. 3 1
      lisp/org-docbook.el
  2. 3 1
      lisp/org-html.el

+ 3 - 1
lisp/org-docbook.el

@@ -1371,7 +1371,9 @@ the alist of previous items."
 			  "</listitem></varlistentry>\n"
 			"</listitem>\n"))
 	      ;; We're ending last item of the list: end list.
-	      (when lastp (insert (format "</%slist>\n" type)))))
+	      (when lastp
+		(insert (format "</%slist>\n" type))
+		(org-export-docbook-open-para))))
 	  (funcall get-closings pos))
     (cond
      ;; At an item: insert appropriate tags in export buffer.

+ 3 - 1
lisp/org-html.el

@@ -2474,7 +2474,9 @@ the alist of previous items."
 	      ;; Ending for every item
 	      (org-close-li type)
 	      ;; We're ending last item of the list: end list.
-	      (when lastp (insert (format "</%sl>\n" type)))))
+	      (when lastp
+		(insert (format "</%sl>\n" type))
+		(org-open-par))))
 	  (funcall get-closings pos))
     (cond
      ;; At an item: insert appropriate tags in export buffer.