From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [BUG] html export and org results block and indentation Date: Wed, 28 Mar 2012 14:30:05 +0200 Message-ID: <87vclodi2a.fsf@med.uni-goettingen.de> References: <87bonjpueo.fsf@med.uni-goettingen.de> <8762dp6br8.fsf@gnu.org> <8762dpdkn4.fsf@med.uni-goettingen.de> <16178.1332936045@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCs1c-00051C-Ji for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:30:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCs1X-00028c-Fa for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:30:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:49627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCs1X-00028N-4r for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 08:30:47 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SCs1V-0004Os-Bp for emacs-orgmode@gnu.org; Wed, 28 Mar 2012 14:30:45 +0200 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Mar 2012 14:30:45 +0200 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Mar 2012 14:30:45 +0200 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: emacs-orgmode@gnu.org Nick Dokos writes: > 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] Hi Nick, thanks for looking into this. I should have tried with emacs -Q before. The difference seems to come from me loading the module org-special-blocks. Without loading this module, I also get your result. Regards, Andreas