emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] babel: delaying call to block preprocessing


From: Eric Schulte
Subject: Re: [Orgmode] [PATCH] babel: delaying call to block preprocessing
Date: Fri, 12 Nov 2010 16:44:39 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Nicolas,

Thanks for making this change, I agree it is appropriate now that Babel
is included in Org-mode.  I've just pushed it up.

Best -- Eric

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> I'm having a little problem when I want to insert a code block inside
> a list. Here is an example:
>
> =====
> 1. Drawing is following:
>    
>    #+BEGIN_SRC asymptote :file drawing.pdf
>    unitsize(5cm);
>    draw(unitcircle);
>    #+END_SRC
>
>
>    Now find its center with compass only.
>
> 2. Another item.
> =====
>
> Upon exporting this, as the code is removed, the blank lines
> surrounding it join together, creating a 2-blank-lines combo very bad
> for the list processing taking place a few lines later. Indeed, when
> `org-export-preprocess-string' proceeds marking list endings in the
> export string, it sees there two separates lists instead of one.
>
> So, the following patch moves `org-export-blocks-preprocess' out of
> its hook (now babel is in Org core this isn't needed anymore), and
> make it called somewhat later, after list processing (and after
> removing excluded and archived trees).
>
> Regards,
>
> --
> Nicolas
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]