emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-babel -- Improper syntax error in session mode?


From: Nick Dokos
Subject: Re: [O] org-babel -- Improper syntax error in session mode?
Date: Mon, 20 Jun 2011 21:17:19 -0400

Herbert Sitz <address@hidden> wrote:

> -------------------------------------
> 
> but this doesn't
> -----------------------------
> #+begin_src python :results output :session mypy
>     x = 1
>     y = 1
>     z = 1
>     for i in range(1,2):
>         x = x + i
>         print x
> 
>         for y in range(10,11):
>             print y
> 
>         for z in range(5,6):
>             print z
>             while y > 0:
>                 print y
>                 y=y-1
> 
>     print "Did it work?"
> #+end_src
> ------------------------------
> 

It works fine if you make the empty lines "indented empty" lines:
add enough space so the newline is at the proper indentation point.

Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]