From 8e254e8cd7fb9bb177c0b3ef9f2f365e04ea8b46 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Apr 2013 15:44:53 +0800 Subject: [PATCH] Fixed path_to_url when os.sep is not '/'. --- pelican/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/utils.py b/pelican/utils.py index 44abb1bd..73abd358 100644 --- a/pelican/utils.py +++ b/pelican/utils.py @@ -317,7 +317,7 @@ def path_to_url(path): if os.sep == '/': return path else: - '/'.join(split_all(path)) + return '/'.join(split_all(path)) def truncate_html_words(s, num, end_text='...'):