Matthew Lundin writes: > stardiviner writes: > >> Matthew Lundin writes: >> >>> >>> I think you also need to replace the newline with a space in the upper >>> case version. >>> >> Supposed there is \n after #+end_src. I also checked the original version before >> that change commit. The original has an newline. I write patch by comparing >> before and after (side by side). > > I'm referring to this line in the patch: > > indent (if upper-case-p "#+BEGIN_SRC\n" "#+begin_src ") > ^ > > The newline that needs to be removed is indicated by "^". > > You can see a correct similar version of this line on line 1932 of > ob-core.el. > > The original line the problematic commit replaced would also have had a > space in both, since it called either downcase or upcase on the string > "#+begin_src ". You're right, I updated the patch now. I really missed seeing that. :)