emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brett Viren <bv@bnl.gov>
To: York Zhao <gtdplatform@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Indentation messed up after example block
Date: Mon, 07 Jul 2014 12:09:18 -0400	[thread overview]
Message-ID: <ir4zjglm9qp.fsf@lycastus.phy.bnl.gov> (raw)
In-Reply-To: <87pphhtnt4.fsf@mailbox.org> (Alexander Baier's message of "Mon, 07 Jul 2014 13:23:35 +0200")

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


Alexander Baier <alexander.baier@mailbox.org> writes:

> On 2014-07-06 20:03 York Zhao wrote:
>> * 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 hit this very problem recently and first assumed it must be a bug.
But, since it's documented[1] I guess it's a "feature".  Although one I
don't immediately see a use for.

I hit this when capturing some logging info which happened to have a
line starting with a triple-*.  Trying to manually find such offending
lines in a large EXAMPLE block is too tedious to contemplate.  A better
way, which is implied by that footnote, is to use Org Src buffers when
entering the content of EXAMPLE blocks in the first place.  I do like:

  <e TAB C-c' <PASTE> C-c'

Where <PASTE> is me pasting or typing whatever is the content of the
EXAMPLE block.

This will not only indent the entire block with a couple of spaces but
will "escape" the problematic headline asterisk with the "special
syntax" comma.


[1] http://orgmode.org/manual/Literal-examples.html#fnd-4

[-- Attachment #2: Type: application/pgp-signature, Size: 180 bytes --]

      parent reply	other threads:[~2014-07-07 16:10 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
2014-07-07 16:09   ` Brett Viren [this message]

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=ir4zjglm9qp.fsf@lycastus.phy.bnl.gov \
    --to=bv@bnl.gov \
    --cc=emacs-orgmode@gnu.org \
    --cc=gtdplatform@gmail.com \


* 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).