[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Indentation messed up after example block
From: |
York Zhao |
Subject: |
Re: [O] Indentation messed up after example block |
Date: |
Mon, 7 Jul 2014 11:19:43 -0400 |
>> 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.
I knew this is exactly the reason. But the question is shouldn't `org-mode'
ignore headlines in example block. I'm not sure whether this is easy or not
though.
> 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).
Smart workaround. Thanks.