|
From: | Fabrice Popineau |
Subject: | Re: [O] Python src blocks indent |
Date: | Wed, 17 May 2017 22:49:07 +0200 |
Fabrice Popineau <address@hidden> writes:
> I mean that in the Org buffer I have for example :
>
> #+BEGIN_SRC ipython :session
> def fact(n):
> if n == 1:
> return 1
> else:
> return n * fact(n-1)
> #+END_SRC
>
> That is, there is a 2 spaces indentation of the whole code block, and the
> code block is properly indented.
> When I export it, I get :
>
> def fact(n):
> if n == 1:
> return 1
> else:
> return n * fact(n-1)
FWIW I cannot reproduce it. You may want to debug
`org-export-unravel-code', `org-export-format-code' or
`org-export-format-code-default'.
Regards,
[Prev in Thread] | Current Thread | [Next in Thread] |