emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: HTML width attribute gets added to a href instead of img
Date: Sat, 07 Jan 2017 15:50:02 +0100	[thread overview]
Message-ID: <87zij2ylet.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAFyQvY0cHTiAvYrHXgiX2sgi51-WqiR91R1XcgLYa8shs=uDDQ@mail.gmail.com> (Kaushal Modi's message of "Fri, 06 Jan 2017 17:19:33 +0000")

Hello,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> I believe that after this commit, the width attribute doesn't get added to
> img tag as expected:
> http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=5ffb373a2ca6833617e344154c3dc1b877ec4784
>
> Here is a MWE:
>
> =====
> Below works as expected
> #+ATTR_HTML: :width 10px
> [[http://orgmode.org/img/org-mode-unicorn-logo.png]]
>
> Below does not where the image is added as /link description/.
> #+ATTR_HTML: :width 10px
> [[http://orgmode.org][http://orgmode.org/img/org-mode-unicorn-logo.png]]
> =====
>
> Here is just the body of the exported html for brevity:
>
> =====
> <body>
> <div id="content">
> <p>
> Below works as expected
> </p>
>
> <div class="figure">
> <p><img src="http://orgmode.org/img/org-mode-unicorn-logo.png"
> alt="org-mode-unicorn-logo.png" width="10px" />
> </p>
> </div>
>
> <p>
> Below does not where the image is added as <i>link description</i>.
> </p>
>
> <div class="figure">
> <p><a href="http://orgmode.org" width="10px"><img src="
> http://orgmode.org/img/org-mode-unicorn-logo.png"
> alt="org-mode-unicorn-logo.png" /></a>
> </p>
> </div>
> </div>
> <div id="postamble" class="status">
> Exported using <div style="display: inline" class="creator"><a href="
> http://www.gnu.org/software/emacs/">Emacs</a> 26.0.50.4 (<a href="
> http://orgmode.org">Org</a> mode 9.0.3)</div> by Kaushal.Modi.
> </div>
> </body>
> =====
>
> Note that in the latter case, the width property gets added to 'a' tag
> instead of to the 'img' tag.

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-01-07 14:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06 17:19 HTML width attribute gets added to a href instead of img Kaushal Modi
2017-01-07 14:50 ` Nicolas Goaziou [this message]
2017-01-07 15:17   ` Kaushal Modi

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=87zij2ylet.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /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).