Hi Rainer, I have fixed the problem with ":results org" so it should now work as expected. The ":results replace raw" can never work as expected because raw results are inserted directly into the Org buffer with no wrappers to delimit the results, so there is no way to programmatically identify which text is the results and which is part of the Org buffer.
Thanks -- Eric Rainer M Krug <r.m.k...@gmail.com> writes: > Hi > > Bewlow an example, illustrating cases where :results replace does not > work, dependent of the type and content. Each of the source blocks was > executed twice: > > ":results output org replace" did not work > ":results output raw replace" did work, but not with all content. > > In addition, there is still the leading space in the firest line of the > output. > > > > #+begin_src R :results output org replace > cat("[[file1.pdf]]\n") > cat("[[file2.pdf]]\n") > #+end_src > > #+results: > #+BEGIN_ORG > [[file1.pdf]] > [[file2.pdf]] > #+END_ORG > #+BEGIN_ORG > [[file1.pdf]] > [[file2.pdf]] > #+END_ORG > > > #+begin_src R :results output raw replace > cat("[[file1.pdf]]\n") > cat("[[file2.pdf]]\n") > #+end_src > > #+results: > [[file1.pdf]] > [[file2.pdf]] > > #+begin_src R :results output raw replace > cat("---\n") > cat("[[file1.pdf]]\n") > cat("[[file2.pdf]]\n") > cat("---\n") > #+end_src > > #+results: > --- > [[file1.pdf]] > [[file2.pdf]] > --- > --- > [[file1.pdf]] > [[file2.pdf]] > --- > > > > > Cheers, > > Rainer _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode