Don't add 'static' prefix to urls with schema.

Don't add 'static' prefix to urls like 'mailto:some@example.com' or
'skype:somename'.
This commit is contained in:
Alexander Artemenko 2011-03-23 11:15:37 +03:00
commit f9f6da0a43

View file

@ -212,7 +212,7 @@ class Writer(object):
relative_paths.append(found)
for relative_path in relative_paths:
if not "://" in relative_path: # we don't want to rewrite protocols
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)