emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] org-exp.el: html export does not close footnote paragraph tag


From: Madhu
Subject: [Orgmode] org-exp.el: html export does not close footnote paragraph tag
Date: Mon, 19 May 2008 16:22:30 +0530 (IST)

  [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 "<p class=\"footnote\"><sup><a 
class=\"footnum\" name=\"fn.%s\" href=\"#fnr.%s\">%s</a></sup>" n n n) t t 
line)))))
+                             (format "<p class=\"footnote\"><sup><a 
class=\"footnum\" name=\"fn.%s\" href=\"#fnr.%s\">%s</a></sup>" n n n) t t 
line))
+                 (setq line (concat line "\n</p>")))))
 
            ;; Check if the line break needs to be conserved
            (cond




reply via email to

[Prev in Thread] Current Thread [Next in Thread]