Hi Nicolas Goaziou <n.goaz...@gmail.com> writes:
[...] >> 1) The commented out `# :exports both' appears to be exported as >> uncommented and relevant (actually, this appears to be true of the >> original exporter too). > > I cannot reproduce it. Anyway, see my comments below. > >> 2) If the source block is executed in buffer with (org-ctrl-c-ctrl-c), >> as shown above, then the exporter appears to export the in-buffer >> results /and/ the export-generated results (where :exports is results >> or both) resulting in two sets of identical results in the export. > > It's out of exporter's scope. When you ask to export some buffer, what > is really parsed is a copy of the current buffer with > `org-export-blocks-preprocess' applied to it. > > So, simply apply that function in your test buffer, and you will see > what is sent to the parser. That will explain why the results appear > twice. > > In other words, tweaking the output of `org-export-blocks-preprocess' > will automatically change the outcome of the export process. Ah yes, I see - thanks for the clear explanation. Best, Martyn