emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: York Zhao <gtdplatform@gmail.com>
To: York Zhao <gtdplatform@gmail.com>, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Indentation messed up after example block
Date: Mon, 7 Jul 2014 11:19:43 -0400	[thread overview]
Message-ID: <CAD3zm22yqZmTX4uuRZ=7EvTEwtfoWEcHNAYgbp1aoWeo_FtZAw@mail.gmail.com> (raw)
In-Reply-To: <87pphhtnt4.fsf@mailbox.org>

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

>> 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.
>> * Example at level one
>> 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

> 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
> it with some other character(s).

Smart workaround. Thanks.

[-- Attachment #2: Type: text/html, Size: 1134 bytes --]

  reply	other threads:[~2014-07-07 15:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 18:03 Indentation messed up after example block York Zhao
2014-07-07 11:23 ` Alexander Baier
2014-07-07 15:19   ` York Zhao [this message]
2014-07-07 16:09   ` Brett Viren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD3zm22yqZmTX4uuRZ=7EvTEwtfoWEcHNAYgbp1aoWeo_FtZAw@mail.gmail.com' \
    --to=gtdplatform@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).