Avoid rewriting protocol related links.

This commit is contained in:
Alexis Metaireau 2011-01-24 01:59:09 +00:00
commit 4d0e18db23

View file

@ -158,8 +158,9 @@ class Writer(object):
relative_paths.append(found)
for relative_path in relative_paths:
if not relative_path.startswith("http://"):
dest_path = os.sep.join((get_relative_path(name), "static", relative_path))
if not "://" in relative_path: # we don't want to rewrite protocols
dest_path = os.sep.join((get_relative_path(name), "static",
relative_path))
content = content.replace(relative_path, dest_path)
return content