Explorar o código

file protocol in HTML links

The appended patch removes the protocol part from link URIs, if the
protocol is file. Neccessary, to show images again and make links work.
Sebastian Rose %!s(int64=15) %!d(string=hai) anos
pai
achega
af080027fc
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lisp/org-html.el

+ 2 - 1
lisp/org-html.el

@@ -640,7 +640,8 @@ MAY-INLINE-P allows inlining it as an image."
 	 (setq thefile 
 	    (let
 	       ((str (org-export-html-format-href thefile)))
-	      (if (and type (string-match "^//" str))
+	      (if (and type (not (string= "file" type))
+		       (string-match "^//" str))
 		  (concat type ":" str)
 		  str)))