Re: [O] Python src blocks indent

2017-05-17 Thread Fabrice Popineau
Thanks Nicolas. I should have looked closer at ox-ipynb since the problem is in there. It should make use of `org-export-unravel-code' and it doesn't. Instead it trims leading white spaces from the src code. I'll report it to the scimax github repository. Best regards, 2017-05-17 15:08 GMT+02:0

Re: [O] Python src blocks indent

2017-05-17 Thread Nicolas Goaziou
Fabrice Popineau 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,

Re: [O] Python src blocks indent

2017-05-17 Thread Fabrice Popineau
Hi, 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. W

Re: [O] Python src blocks indent

2017-05-17 Thread Nicolas Goaziou
Hello, Fabrice Popineau writes: > I have a problem with Python src blocks indentation. > At the moment, I export IPython notebooks with ox-ipynb > (https://github.com/jkitchin/scimax/blob/master/ox-ipynb.el > from scimax by John Kitchin) > > All the lines but the first one in src code blocks hav

[O] Python src blocks indent

2017-05-16 Thread Fabrice Popineau
Hi, I have a problem with Python src blocks indentation. At the moment, I export IPython notebooks with ox-ipynb (https://github.com/jkitchin/scimax/blob/master/ox-ipynb.el from scimax by John Kitchin) All the lines but the first one in src code blocks have 2 superfluous leading spaces. If I set