Re: [O] Indentation messed up after example block
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
Re: [O] Indentation messed up after example block
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.
Re: [O] Indentation messed up after example block
Hi, Alexander Baier alexander.ba...@mailbox.org writes: On 2014-07-06 20:03 York Zhao wrote: ... #+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 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. -Brett. [1] http://orgmode.org/manual/Literal-examples.html#fnd-4 pgpxexQb8TG5u.pgp Description: PGP signature
[O] Indentation messed up after example block
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.