emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [Patch] file protocol in HTML links


From: Sebastian Rose
Subject: [Orgmode] [Patch] file protocol in HTML links
Date: Wed, 26 May 2010 11:37:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

The appended patch removes the protocol part from link URIs, if the
protocol is file. Neccessary, to show images again and make links work.

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]