emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Madhu <enometh@meer.net>
To: emacs-orgmode@gnu.org
Subject: org-exp.el: html export does not close footnote paragraph tag
Date: Mon, 19 May 2008 16:22:30 +0530 (IST)	[thread overview]
Message-ID: <20080519105231.13406A689D@moon.robolove.meer.net> (raw)

  [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	other threads:[~2008-05-19 11:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-19 10:52 Madhu [this message]
2008-05-19 12:25 ` org-exp.el: html export does not close footnote paragraph tag Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080519105231.13406A689D@moon.robolove.meer.net \
    --to=enometh@meer.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).