From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [BUG] html export and org results block and indentation Date: Wed, 28 Mar 2012 08:00:45 -0400 Message-ID: <16178.1332936045@alphaville> References: <87bonjpueo.fsf@med.uni-goettingen.de> <8762dp6br8.fsf@gnu.org> <8762dpdkn4.fsf@med.uni-goettingen.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCrYZ-0004O3-VC for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:00:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCrYY-0000mX-2g for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:00:51 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:23196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCrYX-0000lp-Rj for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:00:50 -0400 In-Reply-To: Message from Andreas Leha of "Wed, 28 Mar 2012 13:34:23 +0200." <8762dpdkn4.fsf@med.uni-goettingen.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Andreas Leha wrote: > Bastien writes: > > > Hi Andreas, > > > > Andreas Leha 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}") > | <> > | #+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}") > | <> > | #+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}") | <> | #+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: ,---- |

| #+BEGINORG | test.png | #+ENDORG |

`---- vs. ,---- |

| test.png |

`---- Nick Org-mode version 7.8.06 (release_7.8.06.162.g36bcb) [includes 3 local commits]