Andreas Leha <andreas.l...@med.uni-goettingen.de> wrote: > Bastien <b...@gnu.org> writes: > > > Hi Andreas, > > > > Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: > > > >> I experience problems when exporting the following to html, as a > >> spuriuos line > >> ORG-ORG-START > >> is inserted after the results block: > > > > I can't reproduce this. Please give more information on how to > > reproduce the problem. > > > The full file to reproduce the problem is: > > ,---- > | * Tikz test > | #+name: contents > | #+begin_src latex :exports (if (and (boundp 'org-export-current-backend) > (eq org-export-current-backend 'latex)) "results" "none") :results latex > | \begin{tikzpicture} > | \node[red!50!black] (a) {A}; > | \node (b) [right of=a] {B}; > | \draw[->] (a) -- (b); > | \end{tikzpicture} > | #+end_src > | > | #+begin_src latex :exports (if (and (boundp 'org-export-current-backend) > (eq org-export-current-backend 'latex)) "none" "results") :results org :file > test.png :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry > 400 :fit yes :noweb yes :headers '("\\usepackage{tikz}") > | <<contents>> > | #+end_src > | > | * Tikz test 2 > | #+name: contents2 > | #+begin_src latex :exports (if (and (boundp 'org-export-current-backend) > (eq org-export-current-backend 'latex)) "results" "none") :results latex > | \begin{tikzpicture} > | \node[red!50!black] (a) {A}; > | \node (b) [right of=a] {B}; > | \draw[->] (a) -- (b); > | \end{tikzpicture} > | #+end_src > | > | #+begin_src latex :exports (if (and (boundp 'org-export-current-backend) > (eq org-export-current-backend 'latex)) "none" "results") :results org :file > test.png :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry > 400 :fit yes :noweb yes :headers '("\\usepackage{tikz}") > | <<contents2>> > | #+end_src > `---- > > I see the problem, when I export this file to html. >
I don't get the spurious ORG-ORG-START line, but I do get a somewhat different problem: the two results blocks both look like this: ,---- | #+begin_src latex :exports (if (and (boundp 'org-export-current-backend) (eq org-export-current-backend 'latex)) "none" "results") :results org :file test.png :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers '("\\usepackage{tikz}") | <<contents>> | #+end_src | | #+RESULTS: | #+BEGIN_ORG | [[file:test.png]] | #+END_ORG `---- except the second one is not indented. In the resulting HTML, the first one still has the #+BEGIN_ORG/#+END_ORG decorations around it, whereas the second one does not: ,---- | <p> | #+BEGIN<sub>ORG</sub> | <img src="test.png" alt="test.png" /> | #+END<sub>ORG</sub> | </p> `---- vs. ,---- | <p> | <img src="test.png" alt="test.png" /> | </p> `---- Nick Org-mode version 7.8.06 (release_7.8.06.162.g36bcb) [includes 3 local commits]