Fixed path_to_url when os.sep is not '/'.

This commit is contained in:
unknown 2013-04-12 15:44:53 +08:00
commit 8e254e8cd7

View file

@ -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='...'):