From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] Fix html export of footnotes with lists, tables, quotes, etc. Date: Wed, 23 Mar 2011 15:08:58 +0100 (CET) Message-ID: <20110323140858.3C438715E@myhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=56294 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2OkR-0007mR-IY for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 10:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2OkP-0003lr-B9 for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 10:09:19 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:55247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2OkP-0003lj-70 for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 10:09:17 -0400 Received: by wyf19 with SMTP id 19so8825434wyf.0 for ; Wed, 23 Mar 2011 07:09:16 -0700 (PDT) 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 Patch 700 (http://patchwork.newartisans.com/patch/700/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3CAANLkTi%3DbFiJvyJZy4vsEvP%2BbMDastWXSB6u72LDPLVqs%40mail.gmail.com%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O] Fix html export of footnotes with lists, tables, quotes, etc. > Date: Fri, 18 Mar 2011 16:52:05 -0000 > From: Puneeth Chaganti > X-Patchwork-Id: 700 > Message-Id: > To: emacs-orgmode > > Hi, > > Attached is a patch that allows having lists, tables, blockquotes and > other org blocks in footnotes. Source code blocks still don't work. > > > diff --git a/lisp/org-html.el b/lisp/org-html.el > index c6f26b5..11ef9ef 100644 > --- a/lisp/org-html.el > +++ b/lisp/org-html.el > @@ -1690,9 +1690,12 @@ lang=\"%s\" xml:lang=\"%s\"> > > (save-excursion > (goto-char (point-min)) > - (while (re-search-forward "

[^\000]*?\\(

\\|\\'\\)" nil t) > - (push (match-string 0) footnotes) > - (replace-match "" t t))) > + (while (re-search-forward > + "\\(\\(

\\)[^\000]*?\\)\\(\\(\\2\\)\\|\\'\\)" > + nil t) > + (push (match-string 1) footnotes) > + (replace-match "\\4" t nil) > + (goto-char (match-beginning 0)))) > (when footnotes > (insert (format org-export-html-footnotes-section > (nth 4 lang-words) >