From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: HTML width attribute gets added to a href instead of img Date: Fri, 06 Jan 2017 17:19:33 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1143d6f4628e2c0545703952 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPYBB-0007qd-Sa for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 12:19:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPYBA-0001FJ-Jp for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 12:19:49 -0500 Received: from mail-vk0-x235.google.com ([2607:f8b0:400c:c05::235]:34900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPYBA-0001Eo-FJ for emacs-orgmode@gnu.org; Fri, 06 Jan 2017 12:19:48 -0500 Received: by mail-vk0-x235.google.com with SMTP id m128so4254271vkb.2 for ; Fri, 06 Jan 2017 09:19:45 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-org list --001a1143d6f4628e2c0545703952 Content-Type: text/plain; charset=UTF-8 Hello, I am using the devel versions of org and emacs. Org mode version 9.0.3 (release_9.0.3-180-g0d3683 @ /home/kmodi/usr_local/apps/6/emacs/master/share/emacs/site-lisp/org/) Emacs version: GNU Emacs 26.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2017-01-06, built using commit 8f0376309ee37e4f1da21d78971c4df2df5fd7b6. 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: =====

Below works as expected

org-mode-unicorn-logo.png

Below does not where the image is added as link description.

org-mode-unicorn-logo.png

Exported using
Emacs 26.0.50.4 (Org mode 9.0.3)
by Kaushal.Modi.
===== Note that in the latter case, the width property gets added to 'a' tag instead of to the 'img' tag. -- Kaushal Modi --001a1143d6f4628e2c0545703952 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I am using the devel versions of= org and emacs.

Org mode version 9.0.3 (release_9.= 0.3-180-g0d3683 @ /home/kmodi/usr_local/apps/6/emacs/master/share/emacs/sit= e-lisp/org/)

Emacs version: GNU Emacs 26.= 0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)
=C2=A0of = 2017-01-06, built using commit 8f0376309ee37e4f1da21d78971c4df2df5fd7b6.

I believe that after this commit, the width at= tribute doesn't get added to img tag as expected:=C2=A0http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3D5ffb3= 73a2ca6833617e344154c3dc1b877ec4784

Here is a = MWE:

=3D=3D=3D=3D=3D
Below works as= expected
#+ATTR_HTML: :width 10px

Below does not where the im= age is added as /link description/.
=3D=3D=3D=3D=3D

=
Here is just the body of the exported html for brevity:

=3D=3D=3D=3D=3D
<body>
<= div id=3D"content">
<p>
Below works = as expected
</p>

<div class=3D&= quot;figure">
<p><img src=3D"http://orgmode.org/img/org-m= ode-unicorn-logo.png" alt=3D"org-mode-unicorn-logo.png" = width=3D"10px" />
</p>
</div><= /div>

<p>
Below does not where the image= is added as <i>link description</i>.
</p>

<div class=3D"figure">
</p>
</div>
</div&g= t;
<div id=3D"postamble" class=3D"status"&= gt;
Exported using <div style=3D"display: inline" cl= ass=3D"creator"><a href=3D"http://www.gnu.org/software/emacs/">Emacs&l= t;/a> 26.0.50.4 (<a href=3D"http:= //orgmode.org">Org</a> mode 9.0.3)</div> by Kaushal= .Modi.
</div>
</body>
=3D= =3D=3D=3D=3D

Note that in the latter case, the wid= th property gets added to 'a' tag instead of to the 'img' t= ag.
--

Kaushal Modi

--001a1143d6f4628e2c0545703952--