emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] #+HTML blocks


From: Carsten Dominik
Subject: Re: [Orgmode] #+HTML blocks
Date: Tue, 22 May 2007 09:07:50 +0200

I guess there should not even be <p> </p> around the image.
However, fixing this is a nighmare, as is the whole html exporter sometimes. Very difficult to maintain - sometimes I think it needs re-writing from scratch. Unfortunately, its hard to find the time, and besides the exporter works reasonably well and other have higher priority.

Thanks for the report.

- Carsten

On May 22, 2007, at 3:03, Bastien wrote:

Hi again,

,----
| #+HTML:<div style="float: right;">
| [[file:image.jpg][file:image.jpg]]
| #+HTML:</div>
`----

is converted like this :

,----
| <div style="float: right;">
| <p>
| <img src="images/bentolila.jpg"/>
| </div>
| </p>
`----

... mixing <div> and <p> in the wrong order.

An easy (but not obvious) way to circumvent this is to insert a blank
line after and before the #+HTML line.  For example:

,----
| #+HTML:<div style="float: right;">
|
| [[file:images/bentolila.jpg][file:images/bentolila.jpg]]
|
| #+HTML:</div>
`----

... is gets converted as :

,----
| <div style="float: right;">
|
| <p>
| <img src="images/bentolila.jpg"/>
| </p>
|
|
| </div>
`----

... where the tags order is correct.

--
Bastien


_______________________________________________
Emacs-orgmode mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477





reply via email to

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