From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Whitton Subject: Inline images export to HTML generates < and > rather than < and > Date: Sun, 27 Mar 2011 14:49:16 +0100 Message-ID: <87tyeod677.fsf@zephyr.silentflame.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from [140.186.70.92] (port=52805 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3qLV-0004wG-2Z for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 09:49:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3qLT-0007Zk-GW for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 09:49:32 -0400 Received: from athena.silentflame.com ([212.13.194.60]:35624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3qLT-0007ZA-9q for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 09:49:31 -0400 Received: from zephyr.silentflame.com (zephyr.athenet [10.9.8.6]) by athena.silentflame.com (Postfix) with ESMTP id D4E701AA6DA for ; Sun, 27 Mar 2011 13:49:26 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Transfer-Encoding: quoted-printable Dear all, Another fanatical Org-mode convert new to the list. Following the 'advice' of [1] I am attempting to generate my personal website using Org publishing, but I'm running up against a pretty weird bug when I try to export inline images. The code gets rendered so that the HTML appears in the browser literally; hitting view-source, instead of 3D"img/avi.gif" Org seems to be outputting <img src=3D"img/avi.gif" alt=3D"img/avi.gif" /> which obviously doesn't appear as an image. The code in the org file is just [[file:img/avi.gif]]. Any idea why this might be? Publishing configuration follows.[2] Excited about what I can do with Org publishing; thanks in advance for any assistance. S [1] http://mph.puddingbowl.org/2010/02/org-mode-in-your-pocket-is-a-gnu-sha= ped-devil/ [2] From my Org init file. Sitemap is published seperately so that I can apply body-only so that it can be included with SSI. This works very well. =3D=3D=3D (require 'org-publish) (setq org-publish-project-alist '( ("org-notes" :base-directory "~/tmp/org-html-export/" :base-extension "org" :publishing-directory "/srv/http/v7g" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 ; Just the default for this project. ; :auto-preamble t :auto-sitemap t ; Generate sitemap.org automagically... :sitemap-filename "sitemap.org" ; ... call it sitemap.org (it's the defaul= t)... :sitemap-title "Sitemap" ; ... with title 'Sitemap'. :sitemap-style 'tree :sitemap-sort-folders 'last :style " " :style-include-default nil :exclude "sitemap.org" :html-preamble "

%t

" :html-postamble " %c
" :html-extension "shtml" ) ("org-static" :base-directory "~/tmp/org-html-export/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|inc\= \|" :publishing-directory "/srv/http/v7g" :recursive t :publishing-function org-publish-attachment ) ("org" :components ("org-notes" "org-static" "org-sitemap")) ("org-sitemap" :base-directory "~/tmp/org-html-export/" :base-extension "org" :publishing-directory "/srv/http/v7g/inc" :publishing-function org-publish-org-to-html :body-only t :html-extension "shtml" ) )) =3D=3D=3D =2D-=20 Sean Whitton / OpenPGP KeyID: 0x3B6D411B http://seanwhitton.com/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJNj0BcAAoJEA9W0FU7bUEbKYsP/2MIL4E9GlkCfqZ9iLu80b10 EboOlzaQkwj7NXpHR8Of0OR8bb1cjDqaod7Z8rxzdcfAxvXzFG5uCwDANTpmUqM0 ijVJegJH+aV5crczM+odyjnJCy5geQ17ivhMett6NIrD0JiJm4FlKLvW9tUVaD4A kXhYj5ULQ+IVXEGXePCBdgjZnXTen6UW5WhZPEiWsMLl+kX3vzsGoMg4rOvZ4nrv Ct8UCtBYf9WoO+8Blgj/DcY0ELo5aPX1K+JZ7WRg2VBPDv8fm75LfgXYqeKwXi1i yqFMau2Kr8TU558y7sZlBv/I/06V8hVBSNx53GFA0dFN9DdLR/KzPTmhYFpcSX/z 60p9FdaBwVbvigG+SPMhFBAJwGpGIz40u3zeAVRPc/WJ5YJqkCGZUGZe3A2m7/Lt s/Vi/BrrV2NBw0uEB3Ew/QL8nc5bB6To2fxXtZ6KraGFnfEy1I5vHzTDxOwcvOll eKAh51AAdYjN7dlMbu9SIPyxphu9h9ZvQQDTi5rTV7WyME2YwRtx/78IjLn0QCaM hsE568BOpL8CEMXHEhcsonc7iKuRXS2hVkxVOaa7sCn6P39/hBKkmdbYz2L7kTJd 3mLL75E8Q2oeTP9R4QPQ2zOr+iHQpFhm3RjOlJk4pGX22S0tBLLxUdWqJk3r3JrR iByYgyLvsvYIr4tdsa2a =1pkc -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Inline images export to HTML generates < and > rather than < and > Date: Sun, 27 Mar 2011 10:09:38 -0400 Message-ID: <87aaggr6xp.fsf@norang.ca> References: <87tyeod677.fsf@zephyr.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=57062 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3qf1-0006Kd-JT for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:09:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3qf0-0003Pg-9j for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:09:43 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:35231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3qf0-0003PU-7F for emacs-orgmode@gnu.org; Sun, 27 Mar 2011 10:09:42 -0400 In-Reply-To: <87tyeod677.fsf@zephyr.silentflame.com> (Sean Whitton's message of "Sun, 27 Mar 2011 14:49:16 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sean Whitton Cc: emacs-orgmode@gnu.org Sean Whitton writes: > Another fanatical Org-mode convert new to the list. Following the > 'advice' of [1] I am attempting to generate my personal website using > Org publishing, but I'm running up against a pretty weird bug when I try > to export inline images. The code gets rendered so that the HTML > appears in the browser literally; hitting view-source, instead of > > img/avi.gif > > Org seems to be outputting > > <img src="img/avi.gif" alt="img/avi.gif" /> > > which obviously doesn't appear as an image. > > The code in the org file is just [[file:img/avi.gif]]. > > Any idea why this might be? Publishing configuration follows.[2] > Excited about what I can do with Org publishing; thanks in advance for > any assistance. > > S > > [1] http://mph.puddingbowl.org/2010/02/org-mode-in-your-pocket-is-a-gnu-shaped-devil/ > > [2] From my Org init file. Sitemap is published seperately so that I can > apply body-only so that it can be included with SSI. This works very > well. Hi Sean, Welcome to the list! This works for me. I think there was a bug like this in a recent release. What version of org-mode are you using? Mine exports as follows --8<---------------cut here---------------start------------->8--- * Test export [[file:img/avi.gif]] --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- ...

img/avi.gif

... --8<---------------cut here---------------end--------------->8--- Maybe try upgrading to the latest development snapshot of org? I'm using Org-mode version 7.5 (release_7.5.115.g00134) Regards, -- Bernt From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Whitton Subject: Re: Re: Inline images export to HTML generates < and > rather than < and > Date: Mon, 28 Mar 2011 09:15:09 +0100 Message-ID: <87hbanr78y.fsf@zephyr.silentflame.com> References: <87tyeod677.fsf@zephyr.silentflame.com> <87aaggr6xp.fsf@norang.ca> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from [140.186.70.92] (port=48579 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q47c9-0007iO-Ck for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 04:15:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q47ba-000766-4C for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 04:15:52 -0400 Received: from athena.silentflame.com ([212.13.194.60]:59888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q47bZ-000760-WE for emacs-orgmode@gnu.org; Mon, 28 Mar 2011 04:15:18 -0400 In-Reply-To: <87aaggr6xp.fsf@norang.ca> (Bernt Hansen's message of "Sun, 27 Mar 2011 10:09:38 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode@gnu.org --=-=-= Content-Transfer-Encoding: quoted-printable Hi Bernt, On 27 Mar 2011 at 14:09Z, Bernt Hansen wrote: > This works for me. I think there was a bug like this in a recent > release. What version of org-mode are you using? > Mine exports as follows > * Test export > [[file:img/avi.gif]] > ... >

3D"img/avi.gif" >

> ... > Maybe try upgrading to the latest development snapshot of org? > I'm using Org-mode version 7.5 (release_7.5.115.g00134) That seems to work, thanks. I thought I was already on the latest git snapshot (or pretty close) but apparently not. Thanks for the welcome. S =2D-=20 Sean Whitton / OpenPGP KeyID: 0x3B6D411B http://seanwhitton.com/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJNkEONAAoJEA9W0FU7bUEbtioP/RHxMiz8cKzbROdWI4rbhXeQ 8wbrIPXW+0898k6t/tC998/t+NdG7U2azN9nyqMzwDhJcwot7GlOw9Wi8cTKd6Bw AKjpYHznW0SXzkb58q0wFcK5Fo4XkvOgaAFhsRME/h2fdmxQWX0+RQncP6XLmpUf WzlJK3V+3BYciAnEx7puz/t0ejXczGUbkGBmdBU3Vi+DkasOz9cDHpTvMycCXpaV rDGFM6zVHtIthiuLxKa/DtiabLK1k5aECLOVJK/htq9OYYWQx1bNT6OIn2j0rCu4 kuCtLybJCuA/BZvFo77aw6tdUeeDl8DvYrStzBR9QICfQqOWQa7LpRS5PdtQ1X5R F/WuTK5Kg+1CTRjVwHzpJvipqU7vlT5sATjIZPzV+3WarT5+SQKouDfdBG0r/Foy HUhdjCEvaMqcEzrMwrKXHTRusdPi6rGeQcYYRRc+pCJ+Zl4ZAzGI6EQB8oJ3AWF+ dJy1zYejgkeFf/+6AwrmHFehfxmcpV8z2xMi2/zqf9OQWjzjl6vFoYcykNXobO4l x+qHpMvYXb1ZaEzsegFNkYeluIZM8dFfGUG2DbRgm1N7iwK8WgBJ+FDHcQBPYXyk grLYPzG+f/s/3O4OVrkublGccu5IpydLhLkjQihaZPPEtDF3alzxjMohG0nsYCWu Ei+/6aCp2Dqesq1vKKN+ =0Qto -----END PGP SIGNATURE----- --=-=-=--