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--