emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: Code block :results raw replace issue [9.3.7 (9.3.7-22-gbd9785-


From: Sergey
Subject: Re: Bug: Code block :results raw replace issue [9.3.7 (9.3.7-22-gbd9785-elpaplus @ /Users/skoshelev/.emacs.d/elpa/26.2/develop/org-plus-contrib-20200824/)]
Date: Tue, 06 Oct 2020 13:14:34 +0000

Thank you, Nicolas. I suspected as much.
I think it would be nice to update the manual to clearly state this behavior.


Cheers,
Sergey.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Tuesday, October 6th, 2020 at 4:59 AM, Nicolas Goaziou 
<mail@nicolasgoaziou.fr> wrote:

> Hello,
>
> Sergey srg.koshelev@protonmail.com writes:
>
> > Code block header argument ~replace~ seems to not to work in conjunction
> >
> > with ~raw~. This leads to output being pre-pended instead of being
> >
> > replaced to the results block.
> >
> > Below is a working example:
> >
> > #+begin_src python :session python-test :results output raw replace
> >
> > print('This line will be added every time this code runs')
> >
> > #+end_src
> >
> > #+RESULTS:
> >
> > This line will be added every time this code runs
>
> This is expected. With "raw", Org has no way to determine where the
>
> output starts, ends, or even if there is one already. You may want to
>
> use another option if you want to replace results.
>
> Regards,
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]