emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with example block and headings
@ 2009-10-12 10:46 Eric S Fraga
  2009-10-12 13:09 ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2009-10-12 10:46 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

This is not a critical problem but I thought I would highlight it.  

If you have an example block which includes lines that look like
org-mode headings, the show/collapse commands get confused.  The two
images attached show the erroneous behaviour for a file with these
contents:

--8<---------------cut here---------------start------------->8---
* example blocks
  The following is an example of the contents of a simple org-mode file:
#+begin_example problem with org interpretation of contents
  This is an example of a simple org-mode file
* The main heading
** A sub-heading
** another sub-heading
   - a list
   - second entry
#+end_example
     That example shows the hierarchical structure and the use of lists.
** Further text here
This is more text that is in a sub-section
--8<---------------cut here---------------end--------------->8---

Although a contrived example, this arose from my use of org-babel-sh
and having output generated that happened to have lines starting with
'* '.  

Note also the indentation of the line immediately after the end of the
example.

thanks,
eric


[-- Attachment #2: expanded.jpg --]
[-- Type: image/jpeg, Size: 32917 bytes --]

[-- Attachment #3: collapsed.jpg --]
[-- Type: image/jpeg, Size: 6275 bytes --]

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-10-13 18:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12 10:46 problem with example block and headings Eric S Fraga
2009-10-12 13:09 ` Carsten Dominik
2009-10-12 15:24   ` Eric S Fraga
2009-10-12 15:40     ` Giovanni Ridolfi
2009-10-12 17:01       ` Eric Schulte
2009-10-13  7:57         ` New guidelines for posting about org-babel (was problem with example block and headings) Carsten Dominik
2009-10-12 16:20   ` [patch] Re: problem with example block and headings Dan Davison

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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