From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: New exporter, links with images Date: Sat, 3 Nov 2012 19:16:15 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04388e49ac4a6904cd9b4005 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUiGs-0001SB-B7 for emacs-orgmode@gnu.org; Sat, 03 Nov 2012 14:16:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUiGr-0005GV-1m for emacs-orgmode@gnu.org; Sat, 03 Nov 2012 14:16:38 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:50309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUiGq-0005Fa-Qt for emacs-orgmode@gnu.org; Sat, 03 Nov 2012 14:16:36 -0400 Received: by mail-wg0-f49.google.com with SMTP id gg4so2230978wgb.30 for ; Sat, 03 Nov 2012 11:16:35 -0700 (PDT) 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: "emacs-orgmode@gnu.org" --f46d04388e49ac4a6904cd9b4005 Content-Type: text/plain; charset=ISO-8859-1 I want to insert a link like : [[http://foo.org/bar][file:foo.jpg]] and export it to html. I assume that it should result in a clickable image. Unfortunately, some assertion fails by doing this. If I remove the assertion : diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el index 9afe4a8..1675bdc 100644 --- a/contrib/lisp/org-e-html.el +++ b/contrib/lisp/org-e-html.el @@ -2110,7 +2110,7 @@ standalone images, do the following. (org-export-get-parent element))) (t nil)))) (when paragraph - (assert (eq (org-element-type paragraph) 'paragraph)) + ; (assert (eq (org-element-type paragraph) 'paragraph)) (when (or (not (and (boundp 'org-e-html-standalone-image-predicate) (functionp org-e-html-standalone-image-predicate))) (funcall org-e-html-standalone-image-predicate paragraph)) I get a result but I'm afraid there are a couple of spurious

tags. Greetings, Fabrice --f46d04388e49ac4a6904cd9b4005 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I want to insert a link like :


=
and export it to html. I assume that it should result in a click= able image. Unfortunately, some assertion fails by doing this.
If I remove the assertion :

diff --git a= /contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el
index 9a= fe4a8..1675bdc 100644
--- a/contrib/lisp/org-e-html.el
+++ b/contrib/lisp/org-e-html.el
@@ -2110,7 +2110,7 @@ standalone= images, do the following.
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-export-get-parent element)))
=A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(t nil))))
=A0 =A0 =A0(when paragraph
- =A0 =A0 =A0(assert (eq (org-ele= ment-type paragraph) 'paragraph))
+ =A0 =A0 =A0; (assert (eq = (org-element-type paragraph) 'paragraph))
=A0 =A0 =A0 =A0(whe= n (or (not (and (boundp 'org-e-html-standalone-image-predicate)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (functionp org-e-h= tml-standalone-image-predicate)))
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= (funcall org-e-html-standalone-image-predicate paragraph))

I get a result but I'm afraid there are a couple of spu= rious <p></p> tags.

Greetings,

Fabrice
--f46d04388e49ac4a6904cd9b4005--