Hello,

Tom Gillespie <tgb...@gmail.com> writes:

> Materializing the whitespace causes many potential issues with source
> blocks for languages that have significant whitespace, issues with
> #+begin_src and #+end_src having different levels of indentation
> (still an issue if you want a block in a plain list), 

This is inaccurate.

The following is a perfectly valid list.

--8<---------------cut here---------------start------------->8---
  1. foo

     #+begin_src emacs-lisp
(+ 1 1)
     #+end_src

  2. bar
--8<---------------cut here---------------end--------------->8---

Source blocks for languages that have significant whitespace should use
the -i flag.

> PS I have included some notes on the worg/dev/org-syntax.org
> file that I wrote while working on the formal grammar. I would
> qualify what I wrote slightly to state that users could in principle
> have leading whitespace before source blocks but that the behavior of
> org in such cases would be left unspecified in the not quite nasal
> demons sense, but that it might be better to have the behavior
> described below with a note that no attempt to deal with correctly
> preserving leading whitespace is required, user beware. A final
> aside: maybe plain lists could have the #+begin_ and #+end_
> lines indented to the level of the plain list but maybe not the body?

What makes you think this is not the case?

Regards,
-- 
Nicolas Goaziou

Reply via email to