emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michel Damiens <michel.damiens@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: html export : adding a class attribute to an image [9.1.6 (9.1.6-44-ge6f891-elpa @ /home/michel/.emacs.d/elpa/org-20180212/)]
Date: Wed, 14 Feb 2018 00:12:30 +0100	[thread overview]
Message-ID: <CAF8NEi1J8d75ujbzxob=tySOJSpcK0_=jfFg+mhKR7qfXpFiMQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2378 bytes --]

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 :

    <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="logo_utl.jpg" alt="logo_utl.jpg" class="vignette">
              <br>
            </figure>
        <p>
            <a href="utltb.html">UTL-TB</a>
    <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="logo_utl.jpg" alt="logo_utl.jpg" class="vignette">
    <br>
    <a href="utltb.html">UTL-TB</a>
    <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/)

[-- Attachment #2: Type: text/html, Size: 3318 bytes --]

             reply	other threads:[~2018-02-13 23:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-13 23:12 Michel Damiens [this message]
2018-02-14 14:07 ` Bug: html export : adding a class attribute to an image [9.1.6 (9.1.6-44-ge6f891-elpa @ /home/michel/.emacs.d/elpa/org-20180212/)] Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF8NEi1J8d75ujbzxob=tySOJSpcK0_=jfFg+mhKR7qfXpFiMQ@mail.gmail.com' \
    --to=michel.damiens@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).