From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Confused about inline html images Date: Wed, 6 Feb 2013 15:53:37 -0600 Message-ID: References: <87halxpq5g.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Cw0-0003VA-GM for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 16:53:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3Cvz-0004Ew-2t for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 16:53:40 -0500 Received: from mail-oa0-f41.google.com ([209.85.219.41]:49203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3Cvy-0004Ek-UH for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 16:53:39 -0500 Received: by mail-oa0-f41.google.com with SMTP id i10so2114783oag.14 for ; Wed, 06 Feb 2013 13:53:38 -0800 (PST) In-Reply-To: <87halxpq5g.fsf@bzg.ath.cx> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode On Thu, Jan 31, 2013 at 3:45 AM, Bastien wrote: > Hi John, > > John Hendy writes: > >> Still one issue: it's applying the attr_html to the wrong bit. Here's >> the resultant export output: >> >> #+attr_html: width="400px" >> [[http://path/to/file.jpg][http://path/to/file.jpg]] >> >> becomes: >> >> > src="http://path/to/file.jpg" alt="file.jpg"/> > > Yes, that's wrong. I fixed this. Thanks for reporting it! > Sorry for the late response. I pulled when you made the change but hadn't gotten around to testing. Still having odd behavior. The minimal example: M-x org-version Org-mode version 7.9.3e (7.9.3e-910-g33c4f6 @ /home/jwhendy/.elisp/org.git/lisp/) Emacs installed from Arch Linux main repository (not testing or from source): $ emacs --version GNU Emacs 24.2.1 #+begin_src minimal-config ;; set load paths ;; set load dirs and global config options (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/") (add-to-list 'load-path "~/.elisp/org.git/lisp/") #+end_src #+begin_src test.org * A headline And a random image from imgur: - full size [[http://i.imgur.com/tladtBz.jpg][http://i.imgur.com/tladtBz.jpg]] - with an =attr_html= width passed: #+attr_html: width="200px" [[http://i.imgur.com/tladtBz.jpg][http://i.imgur.com/tladtBz.jpg]] #+end_src The process: - emacs -q - M-x load-file ~/path/to/minimal-config - C-x C-f ~/path/to/test.org - C-e h When I open the file in a browser and view source, this is what I get for the images portion: #+begin_src html

http://i.imgur.com/tladtBz.jpg

  • with an attr_html width passed:

http://i.imgur.com/tladtBz.jpg

#+end_src It looks like it's using my second option for the alt text instead of using it for a link? Not sure. This was happening to me when I originally posted to the list about this (as in, I couldn't even get the images to be clickable, but then magically it worked right after I posted). Now it seems to be doing the original behavior. Any suggestions? John > -- > Bastien