From mboxrd@z Thu Jan 1 00:00:00 1970 From: Madhu Subject: org-exp.el: html export does not close footnote paragraph tag Date: Mon, 19 May 2008 16:22:30 +0530 (IST) Message-ID: <20080519105231.13406A689D@moon.robolove.meer.net> Reply-To: enometh@meer.net Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jy3sO-0002xN-TV for emacs-orgmode@gnu.org; Mon, 19 May 2008 07:50:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jy3sO-0002w2-6h for emacs-orgmode@gnu.org; Mon, 19 May 2008 07:50:00 -0400 Received: from [199.232.76.173] (port=36541 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jy3sO-0002vl-3N for emacs-orgmode@gnu.org; Mon, 19 May 2008 07:50:00 -0400 Received: from [59.92.93.194] (port=28461 helo=moon.robolove.meer.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jy3sM-0001q6-O3 for emacs-orgmode@gnu.org; Mon, 19 May 2008 07:49:59 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org [No need to forward to list if acted on] Helu, the new nxml mode complained that footnotes in exported org files don't have their paragraphs closed: Perhaps something like the following would fix it? --Madhu diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 814515f..6f8d6b0 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2924,7 +2924,8 @@ lang=\"%s\" xml:lang=\"%s\"> (org-close-par-maybe) (let ((n (match-string 1 line))) (setq line (replace-match - (format "

%s" n n n) t t line))))) + (format "

%s" n n n) t t line)) + (setq line (concat line "\n

"))))) ;; Check if the line break needs to be conserved (cond