emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG] html export and org results block and indentation


From: Nick Dokos
Subject: Re: [O] [BUG] html export and org results block and indentation
Date: Wed, 28 Mar 2012 08:00:45 -0400

Andreas Leha <address@hidden> wrote:

> Bastien <address@hidden> writes:
> 
> > Hi Andreas,
> >
> > Andreas Leha <address@hidden> 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]




reply via email to

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