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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: HTML width attribute gets added to a href instead of img Date: Sat, 07 Jan 2017 15:50:02 +0100 Message-ID: <87zij2ylet.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPsJu-0004Qg-3w for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 09:50:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPsJr-0005Ya-3Y for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 09:50:10 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42842) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cPsJq-0005W6-TU for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 09:50:07 -0500 In-Reply-To: (Kaushal Modi's message of "Fri, 06 Jan 2017 17:19:33 +0000") 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: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi 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: > > ===== > >
>

> Below works as expected >

> >
>

alt="org-mode-unicorn-logo.png" width="10px" /> >

>
> >

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

> > >
>
> 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. Fixed. Thank you. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: HTML width attribute gets added to a href instead of img Date: Sat, 07 Jan 2017 15:17:58 +0000 Message-ID: References: <87zij2ylet.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403043615ca5b48e4054582a4bd Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPsl1-00049O-1z for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 10:18:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPskz-0006SF-Pj for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 10:18:11 -0500 Received: from mail-ua0-x22b.google.com ([2607:f8b0:400c:c08::22b]:34322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPskz-0006S8-KO for emacs-orgmode@gnu.org; Sat, 07 Jan 2017 10:18:09 -0500 Received: by mail-ua0-x22b.google.com with SMTP id 41so12971973uai.1 for ; Sat, 07 Jan 2017 07:18:09 -0800 (PST) In-Reply-To: <87zij2ylet.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-org list --f403043615ca5b48e4054582a4bd Content-Type: text/plain; charset=UTF-8 Thank you! On Sat, Jan 7, 2017, 9:50 AM Nicolas Goaziou wrote: > Hello, > > Kaushal Modi 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: > > > > ===== > > > >
> >

> > Below works as expected > >

> > > >
> >

> alt="org-mode-unicorn-logo.png" width="10px" /> > >

> >
> > > >

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

> > > > > >
> >
> > 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. > > Fixed. Thank you. > > > Regards, > > -- > Nicolas Goaziou > -- Kaushal Modi --f403043615ca5b48e4054582a4bd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thank you!


On Sat, Jan 7, 2017, 9:50 A= M Nicolas Goaziou <mail@nicola= sgoaziou.fr> wrote:
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=3D5f= fb373a2ca6833617e344154c3dc1b877ec4784
>
> Here is a MWE:
>
> =3D=3D=3D=3D=3D
> Below works as expected
> #+ATTR_HTML: :width 10px
> [[http://orgmode.org/img/or= g-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]]
> =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"figure">
> <p><img src=3D"http://orgmode.org/img/org-mode-unicorn-logo.png"
> alt=3D"org-mode-unicorn-logo.png" width=3D"10px" /= >
> </p>
> </div>
>
> <p>
> Below does not where the image is added as <i>link description&l= t;/i>.
> </p>
>
> <div class=3D"figure">
> <p><a href=3D"http://orgmode.org" = width=3D"10px"><img src=3D"
> http://orgmode.org/img/org-= mode-unicorn-logo.png"
> alt=3D"org-mode-unicorn-logo.png" /></a>
> </p>
> </div>
> </div>
> <div id=3D"postamble" class=3D"status">
> Exported using <div style=3D"display: inline" class=3D&qu= ot;creator"><a href=3D"
> http://www.gnu.org/software/emacs/&qu= ot;>Emacs</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 width property gets added to 'a&= #39; tag
> instead of to the 'img' tag.

Fixed. Thank you.


Regards,

--
Nicolas Goaziou
--

Kaushal Modi

--f403043615ca5b48e4054582a4bd--