org-babel :wrap causes multiple outputs reddit / emacs ---------------------------------------------------------------------- mahmooz · 2022-04-18 11:20 i have the following code in my org mode document #+begin_src latex :file test.png :results file graphics :wrap center x = 20 #+end_src everytime i type `C-c C-C` in order to execute the code block i get another block of output so i end up with multiple blocks like: #+RESULTS: #+begin_center [[file:test.png]] #+end_center #+begin_center [[file:test.png]] #+end_center #+begin_center [[file:test.png]] #+end_center however if i remove the `:wrap center` it works just fine, how can i prevent this? ---------------------------------------------------------------------- Phil-Hudson · 2022-04-18 15:35 That does sound strange. Could it be from an inherited source block header property defined elsewhere in the file? (Can't think how that would work, but might be worth checking). ---------------------------------------------------------------------- mahmooz · 2022-04-18 15:57 even if i opened a blank org file and inserted this i would get the same result so i guess its a bug in org mode? ---------------------------------------------------------------------- lstrang · 2022-04-18 16:38 Try `:results output replace` ---------------------------------------------------------------------- mahmooz · 2022-04-18 18:03 tried it didnt work, anyway im already using the :results keyword im not sure i can use it twice ---------------------------------------------------------------------- lstrang · 2022-04-19 15:58 Yeah, it seems to work with `:wrap `, so this is strange indeed. I also notice that with `:wrap center` the output does not seem to be a part of the `#+RESULTS:` drawer since it does not collapse when you tab on it, though it does with all wraps other than `:wrap center`. Might be a good thing to send along to the org mailing list. ---------------------------------------------------------------------- yantar92 · 2022-04-21 13:21 FYI, I am not able to reproduce using Org 9.5.3 ---------------------------------------------------------------------- [deleted] · 2022-05-02 17:27 [deleted]