Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Hello, When exporting to html an image for which I added a class attribute, the result seems to depend on the fact that I insert or not an empty line after the image link. Example : with this text in my org file : * Le sens des math #+ATTR_HTML: :class vignette [[file:logo_utl.jpg]] [[file:utltb.org][UTL-TB]] (Université du Temps Libre de Tarbes et Bigorre) I get the following html code :

Le sens des math

logo_utl.jpg

UTL-TB
(Université du Temps Libre de Tarbes et Bigorre)
and with this text (no blank line in the middle) : * Le sens des math #+ATTR_HTML: :class vignette [[file:logo_utl.jpg]] [[file:utltb.org][UTL-TB]] (Université du Temps Libre de Tarbes et Bigorre) I get : div id="outline-container-org4aefefe" class="outline-2">

Le sens des math

logo_utl.jpg
UTL-TB
(Université du Temps Libre de Tarbes et Bigorre)
In the second case the class attribute have been added both to

and tags, which is not what I xant. Is it always necessary to separate the link from the rest of the text with a blank line ? (Sorry, I didn't find in documentation a way to format code in the mail. I hope it is readable) Thanks a lot for your help Michel Emacs : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20 on lcy01-07, modified by Debian Package: Org mode version 9.1.6 (9.1.6-44-ge6f891-elpa @ /home/michel/.emac= s.d/elpa/org-20180212/)