emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Indentation messed up after example block


From: Alexander Baier
Subject: Re: [O] Indentation messed up after example block
Date: Mon, 07 Jul 2014 13:23:35 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

On 2014-07-06 20:03 York Zhao wrote:
> Hi list,
>
> I just noticed a problem that org-mode indentation gets messed up after
> "example" block. Here is ECM:
>
> #+STARTUP: indent
>
> * Level one
> ** Level two
> Indentation is right.
>
> #+BEGIN_EXAMPLE
> * Example at level one
> #+END_EXAMPLE
>
> Indentation is wrong.

The asterisk followed by a space followed by text in your example block
is recognized by org as a headline. So org thinks everything under that
headline is the body of the headline.

You can fix this by not letting "* Example at level one" start at the
beginning of the line, but instead indent it by one or more spaces or
prefix it with some other character(s).

HTH,
-- 
Alexander Baier



reply via email to

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