From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Zhao Subject: Re: Indentation messed up after example block Date: Mon, 7 Jul 2014 11:19:43 -0400 Message-ID: References: <87pphhtnt4.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc06c23593f204fd9c017c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Ahl-0005S9-JH for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 11:19:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4Ahk-000162-Fp for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 11:19:45 -0400 Received: from mail-ve0-x236.google.com ([2607:f8b0:400c:c01::236]:61304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Ahk-00015n-BH for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 11:19:44 -0400 Received: by mail-ve0-f182.google.com with SMTP id oy12so4320056veb.27 for ; Mon, 07 Jul 2014 08:19:43 -0700 (PDT) In-Reply-To: <87pphhtnt4.fsf@mailbox.org> 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: York Zhao , emacs-orgmode --047d7bdc06c23593f204fd9c017c Content-Type: text/plain; charset=UTF-8 >> 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. --047d7bdc06c23593f204fd9c017c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>> Hi list,
>>
>> I just noticed a= problem that org-mode indentation gets messed up after
>> "e= xample" block. Here is ECM:
>>
>> #+STARTUP: indent<= br> >>
>> * Level one
>> ** Level two
>> Inden= tation is right.
>>
>> #+BEGIN_EXAMPLE
>> * Exam= ple at level one
>> #+END_EXAMPLE
>>
>> Indentat= ion 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.
<= br>
--047d7bdc06c23593f204fd9c017c--