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#FeedbackYour 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 :
<div id="outline-container-org4aefefe" class="outline-2">
<h2 id="org4aefefe">Le sens des math</h2>
<div class="outline-text-2" id="text-org4aefefe">
<figure>
<img src="" alt="logo_utl.jpg"
class="vignette">
<br>
</figure>
<p>
<a href=""> <br>(Université du Temps Libre de Tarbes et Bigorre)<br>
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">
<h2 id="org4aefefe">Le sens des math</h2>
<div class="outline-text-2" id="text-org4aefefe">
<p
class="vignette">
<img src="" alt="logo_utl.jpg"
class="vignette">
<br>
<a href=""> <br>(Université du Temps Libre de Tarbes et Bigorre)<br>
In the second case the class attribute have been added both to <p> and
<img> 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/)