On Wed, 13 Jul 2016, Robert Klein wrote:

Hi,

When exporting a source block, e.g.

--- snip (example org file) ---
#+begin_src conf
 Test

 ,* asterisk in src block
#+end_src
--- snip ---


the escaping of the asterisk does not work.  Instead a headline
“asterisk in src block” is created.

I don't have `ob-conf', but this:

--8<---------------cut here---------------start------------->8---

#+begin_src emacs-lisp :exports both
  "Test

  ,* asterisk in src block"
#+end_src

--8<---------------cut here---------------end--------------->8---

shows the issue. Also, the #+[BEGIN|END]_SRC parts of the src block are showing up in the export.

Putting `org-escape-code-in-string' back in `org-babel-exp-code' here

:  ("body"  . ,(org-escape-code-in-string (nth 1 info)))

seems to fix this as long as there is a newline after the last #+END_SRC in the buffer.

Chuck

Reply via email to