From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: Re: [PATCH] org-latex: Don't append newline to end of footnote Date: Wed, 30 Mar 2011 10:14:05 +0100 Message-ID: References: <4D91DA12.1070707@gmail.com> <87d3l9kesc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=41738 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4rTv-0000GA-2j for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 05:14:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4rTs-00012P-6z for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 05:14:25 -0400 Received: from lo.gmane.org ([80.91.229.12]:58078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4rTs-000125-1Q for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 05:14:24 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4rTq-0008Pe-Ec for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 11:14:22 +0200 Received: from cpat001.wlan.net.ed.ac.uk ([129.215.5.255]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2011 11:14:22 +0200 Received: from wence by cpat001.wlan.net.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Mar 2011 11:14:22 +0200 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 Nicolas wrote: > Hello, > Lawrence Mitchell writes: [...] > The analysis is good, but unfortunately the patch has a flaw. > In fact, your patch work in that particular situation, but not if > a footnote definition ends with a list, nor if it ends with a link. To > solve the latter, you need to insert a white-space before the closing > bracket. To solve the former, I thought adding a newline instead of the > white-space was enough, but it now appears it was a bad idea. > Thus, the solution lies elsewhere. Ugh, indeed. I wonder whether it would be enough to add the correct list indent to the beginning of the line with the closing brace. ALthough I notice without my patch, the export of a footnote containing a list which is in a list also does not work: - Hello [fn:1] * Footnotes [fn:1] Goodbye - an item No idea how to fix this though, sorry. Lawrence -- Lawrence Mitchell