all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ox-ascii, bug?] aligning text withing footnotes
Date: Sat, 07 Mar 2015 21:16:24 +0100	[thread overview]
Message-ID: <87mw3o7ecn.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87bnk5kq0k.fsf@gmx.us> (rasmus@gmx.us's message of "Sat, 07 Mar 2015 12:26:03 +0100")

Rasmus <rasmus@gmx.us> 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).

You can use a verse block to align properly links, if you want to.


Regards,

  reply	other threads:[~2015-03-07 20:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 23:31 [ox-ascii, bug?] aligning text withing footnotes Rasmus
2015-03-07  1:12 ` Nicolas Goaziou
2015-03-07 11:26   ` Rasmus
2015-03-07 20:16     ` Nicolas Goaziou [this message]
2015-03-08  2:18       ` Rasmus
2015-03-08 16:21         ` Nicolas Goaziou

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

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

  git send-email \
    --in-reply-to=87mw3o7ecn.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.