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

#+END_SRC line is appended to the output without a newline

Open philipsd6 opened this issue 5 years ago • 2 comments

For example, the results from this org-mode block:

* Get a list of my repositories
#+NAME: github-repositories
#+BEGIN_SRC restclient :var token=token
  GET https://api.github.com/user/repos?type=owner
  User-Agent: emacs27/restclient.el
  Authorization: Basic :token
#+END_SRC

Look like this:

#+RESULTS: github-repositories
#+BEGIN_SRC js
[{"id": 123, ...}, {...}]#+END_SRC

Which breaks folding, and messes up subsequent org-mode blocks.

philipsd6 avatar Nov 05 '19 19:11 philipsd6

I'm not able to reproduce this. Have you changed org-babel-default-header-args:restclient? If so, what are you using?

alf avatar Nov 19 '19 09:11 alf

Seems this is reproducible if we introduce hooks as per #19.

alf avatar Jan 15 '20 06:01 alf