Hello,

Jiajian Huang <ispi...@gmail.com> writes:

> Reproduce steps:
>
> Launch emacs by `emacs -Q`, eval the following snippet(assumed org 9.x
> is installed via elpa)
>
>     (package-initialize)
>     (require 'org)
>
> open a org buffer, input the source by <s and type `python`
>
> #+BEGIN_SRC python
>
> #+END_SRC
>
> use C-c ' to edit the block and input
>
>     for i in range(10):      # input this line and <enter>
>         # there are 4 spaces before the '#' now
>
> use C-c ' to close the source block buffer and back to org-mode, we can
> see the first line of the block is indented 2 spaces by org while the blank
> line
> isn't.

This is not a bug. See `org-src-preserve-indentation'.

Regards,

-- 
Nicolas Goaziou

Reply via email to