From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Re: Indentation messed up after example block Date: Mon, 07 Jul 2014 13:23:35 +0200 Message-ID: <87pphhtnt4.fsf@mailbox.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X471d-0001u6-Gg for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 07:24:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X471X-0004fs-3I for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 07:24:01 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:34631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X471W-0004fZ-Q4 for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 07:23:55 -0400 In-Reply-To: (York Zhao's message of "Sun, 6 Jul 2014 14:03:14 -0400") 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 Cc: emacs-orgmode 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