Closed donneyluck closed 1 year ago
In my experience, this does occur only when there is no empty line between the heading and the #+end_src
. I would rather prefer to leave this behavior to remind me to add the missing new line.
but if there is an empty line between the heading and the #+end_src like this press tab can not unfold heading
press tab can not unfold heading
Well, in my machine it does unfold it! @donneyluck
I'm using Emacs 29 by the way, it is more stable than Emacs 30 nowadays
It should be noted that it is not after the title press tab Cursor needs to be behind ↩ then press tab
Cursor needs to be behind  then press tab
In my machine, it unfolds in all cases!
my solution
The code you provided overwrites the #+end_src
background, which fixes the issue when the headings are folded, but when you unfold them, you can notice that the #+end_src
has the wrong background.
EDIT: I don't consider this as an issue, if you add a new line after the #+end_src
this will be solved!
* Title
#+src_begin python
#+src_end
<----------- Add a new line here!
* Title 2
...
hi @abougouffa i have the same problem https://emacs.stackexchange.com/questions/52324/prevent-org-source-block-face-from-bleeding-out-in-fold https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52587 maybe a bug
my solution
This is just a suggestion, please join according to your preferences