From d728c170044020855000852b7beff646661854b6 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sat, 2 Jun 2012 17:07:56 +0530 Subject: [PATCH] org-e-html.el: Properly render relative file URLs --- contrib/lisp/org-e-html.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el index 55830755a..2feb5d30b 100644 --- a/contrib/lisp/org-e-html.el +++ b/contrib/lisp/org-e-html.el @@ -2501,9 +2501,8 @@ INFO is a plist holding contextual information. See ((string= type "file") (when (string-match "\\(.+\\)::.+" raw-path) (setq raw-path (match-string 1 raw-path))) - (if (file-name-absolute-p raw-path) - (concat "file://" (expand-file-name raw-path)) - (concat "file://" raw-path))) + (if (not (file-name-absolute-p raw-path)) raw-path + (concat "file://" (expand-file-name raw-path)))) (t raw-path))) protocol) (cond