ob-restclient.el icon indicating copy to clipboard operation
ob-restclient.el copied to clipboard

Adds erroneous `#+begin_example` and `#+end_example` on first execution

Open josephmr opened this issue 1 year ago • 0 comments

This only happens the very first time I execute a restclient src block. All subsequent times work as expected.

Additionally if I enable edebug or tracing on org-babel-execute:restclient it does not add the example tags so I can't debug the issue.

I see this was also briefly alluded to in #19 .

Reproduce

#+begin_src restclient
GET https://pokeapi.co/api/v2/pokemon/ditto
#+end_src

Results in:

#+RESULTS:
#+begin_example
,#+BEGIN_SRC js
{
  ...
}
// Headers...
,#+END_SRC
#+end_example

josephmr avatar Apr 01 '23 22:04 josephmr