From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [ox-ascii, bug?] aligning text withing footnotes Date: Sun, 08 Mar 2015 03:18:09 +0100 Message-ID: <87bnk4i65a.fsf@gmx.us> References: <878ufbqavl.fsf@gmx.us> <87egp18vbq.fsf@nicolasgoaziou.fr> <87bnk5kq0k.fsf@gmx.us> <87mw3o7ecn.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQnP-00020v-VC for emacs-orgmode@gnu.org; Sat, 07 Mar 2015 21:18:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUQnL-0004eG-UG for emacs-orgmode@gnu.org; Sat, 07 Mar 2015 21:18:23 -0500 Received: from plane.gmane.org ([80.91.229.3]:52679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUQnL-0004eB-Mu for emacs-orgmode@gnu.org; Sat, 07 Mar 2015 21:18:19 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YUQnK-00029K-PJ for emacs-orgmode@gnu.org; Sun, 08 Mar 2015 03:18:18 +0100 Received: from 102.201.133.37.dynamic.jazztel.es ([37.133.201.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Mar 2015 03:18:18 +0100 Received: from rasmus by 102.201.133.37.dynamic.jazztel.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Mar 2015 03:18:18 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Rasmus writes: > >> No. In a normal paragraph when I do >> >> para1\\ >> para2 >> >> The whitespace indentation is respected. All I'm saying that when I do >> something equivalent in a footnote the amount of characters removed from >> the first list (typically 3: "fn:") should also be removed from subsequent >> lines. E.g. >> >> [fn:1] http://orgmode.org/\\ >> http://www.gnu.org/software/emacs/ >> >> Becomes: >> >> [1] http://orgmode.org/\\ >> http://www.gnu.org/software/emacs/ >> >> But >> >> [fn:1] http://orgmode.org/ long text here >> http://www.gnu.org/software/emacs/ >> >> Becomes >> >> [1] http://orgmode.org/ long text here >> http://www.gnu.org/software/emacs/ > > It is difficult to know the indentation of the first line from the parse > tree. Both > > [fn:1] http://orgmode.org/ > > and > > [fn:1] http://orgmode.org > > will appear as "http://orgmode.org" anyway. We could compute it by > subtracting footnote's beginning position from paragraph's. However, we > cannot trust such positions as they might be fake, or even not there > (elements inserted right into the parse tree). What I want to do is simpler. I want to subtract the length between [1] and [fn:1] from every line between :begin and :end of the footnote-definition. Differences other than the three character difference between [fn:1] and [1] I don't care about. –Rasmus -- When in doubt, do it!