Hello, Org mode friends.

I just got a slight difficulty for which some of you may have an
advice.  My source looks like this:

--8<---------------cut here---------------start------------->8---
#+ATTR_HTML: align="right"
[[file:2011-06-04-gazou-passeport.png][file:2011-06-04-gazou-passeport-petit.jpg]]
--8<---------------cut here---------------end--------------->8---

and once converted to HTML, yields (reformatted for legibility):

--8<---------------cut here---------------start------------->8---
<a href="2011-06-04-gazou-passeport.png"
   align="right">
  <img src="2011-06-04-gazou-passeport-petit.jpg"
       alt="2011-06-04-gazou-passeport-petit.jpg"/>
</a>
--8<---------------cut here---------------end--------------->8---

The ATTR_HTML details got applied to the <a> tag while I wanted them to
be on the <img> tag.  If I hand-edit the result so it is:

--8<---------------cut here---------------start------------->8---
<a href="2011-06-04-gazou-passeport.png">
  <img src="2011-06-04-gazou-passeport-petit.jpg"
       alt="2011-06-04-gazou-passeport-petit.jpg"
       align="right"/>
</a>
--8<---------------cut here---------------end--------------->8---

then I get the display I wanted.  Is there a way for having #+ATTR_HTML
to be applied to the inner tag instead of the outer one?

François

Reply via email to