emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-exp.el: html export does not close footnote paragraph tag
@ 2008-05-19 10:52 Madhu
  2008-05-19 12:25 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Madhu @ 2008-05-19 10:52 UTC (permalink / raw)
  To: emacs-orgmode

  [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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: org-exp.el: html export does not close footnote paragraph tag
  2008-05-19 10:52 org-exp.el: html export does not close footnote paragraph tag Madhu
@ 2008-05-19 12:25 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-05-19 12:25 UTC (permalink / raw)
  To: enometh; +Cc: emacs-orgmode

Applied, thanks.

- Carsten

On May 19, 2008, at 12:52 PM, Madhu wrote:

>  [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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-19 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 10:52 org-exp.el: html export does not close footnote paragraph tag Madhu
2008-05-19 12:25 ` Carsten Dominik

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).