emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Confused about inline html images
Date: Wed, 6 Feb 2013 15:53:37 -0600	[thread overview]
Message-ID: <CA+M2ft90s+YWANTNViU4bc6TVtatJAd50oC8Es4-XFcHQ8dkuw@mail.gmail.com> (raw)
In-Reply-To: <87halxpq5g.fsf@bzg.ath.cx>

On Thu, Jan 31, 2013 at 3:45 AM, Bastien <bzg@altern.org> wrote:
> Hi John,
> John Hendy <jw.hendy@gmail.com> 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:
>> <a href="http://path/to/file.jpg" width="400px"><img
>> src="http://path/to/file.jpg" alt="file.jpg"/></a>
> 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 @

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/")

#+begin_src test.org
* A headline

And a random image from imgur:

- full size


- with an =attr_html= width passed:

#+attr_html: width="200px"

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
<img src="http://i.imgur.com/tladtBz.jpg"
alt="http://i.imgur.com/tladtBz.jpg" />
<ul class="org-ul">
<li>with an <code>attr_html</code> width passed:

<img src="http://i.imgur.com/tladtBz.jpg" width="200px"
alt="http://i.imgur.com/tladtBz.jpg" />

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?


> --
>  Bastien

  reply	other threads:[~2013-02-06 21:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-13 19:48 Confused about inline html images John Hendy
2013-01-13 19:54 ` John Hendy
2013-01-13 20:09   ` John Hendy
2013-01-31  9:45   ` Bastien
2013-02-06 21:53     ` John Hendy [this message]
2013-02-07  7:38       ` Bastien

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:

  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=CA+M2ft90s+YWANTNViU4bc6TVtatJAd50oC8Es4-XFcHQ8dkuw@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \


* 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


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