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.
This commit is contained in:
Sebastian Rose 2010-05-26 14:37:03 +00:00 committed by John Wiegley
parent 54d513ee0c
commit af080027fc
1 changed files with 2 additions and 1 deletions

View File

@ -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)))