[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [BUG] html export and org results block and indentation
From: |
Andreas Leha |
Subject: |
Re: [O] [BUG] html export and org results block and indentation |
Date: |
Wed, 28 Mar 2012 14:30:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> 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]
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