From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: [Patch] file protocol in HTML links Date: Wed, 26 May 2010 11:37:03 +0200 Message-ID: <874ohvm2bk.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=59906 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHD32-0008Nr-It for emacs-orgmode@gnu.org; Wed, 26 May 2010 05:37:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHD30-0007yu-Ci for emacs-orgmode@gnu.org; Wed, 26 May 2010 05:37:12 -0400 Received: from mail.gmx.net ([213.165.64.20]:45560) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OHD2z-0007yS-Uy for emacs-orgmode@gnu.org; Wed, 26 May 2010 05:37:10 -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: Emacs-orgmode mailing list --=-=-= The appended patch removes the protocol part from link URIs, if the protocol is file. Neccessary, to show images again and make links work. --=-=-= Content-Type: text/x-diff Content-Disposition: inline diff --git a/lisp/org-html.el b/lisp/org-html.el index d5f4775..8f7d0f3 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -640,7 +640,7 @@ MAY-INLINE-P allows inlining it as an image." (setq thefile (let ((str (org-export-html-format-href thefile))) - (if type + (if (and type (not (string= "file" type))) (concat type ":" str) str))) --=-=-= Best wishes Sebastian --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--