emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [PATCH] Don't add url type if link is relative.


From: 
Subject: [Orgmode] [PATCH] Don't add url type if link is relative.
Date: Sat, 22 May 2010 17:18:29 +0200

From: David Maus <address@hidden>

---
 lisp/ChangeLog   |    3 +++
 lisp/org-html.el |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b3a3529..1bbb4be 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2010-05-22  David Maus  <address@hidden>
 
+       * org-html.el (org-html-make-link): Don't add url type if link
+       is relative.
+
        * org-w3m.el (org-w3m-copy-for-org-mode)
        (org-w3m-get-next-link-start, org-w3m-get-prev-link-start):
        Get text property directly, not using macro `w3m-anchor'.
diff --git a/lisp/org-html.el b/lisp/org-html.el
index d5f4775..221cbf6 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 (string-match-p "^//" str))
                  (concat type ":" str)
                  str)))
 
-- 
1.7.1




reply via email to

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