Skip to content
Permalink
Browse files

spaces broke URLs

  • Loading branch information
ralsina committed Aug 21, 2015
1 parent fb6a784 commit a987c7c9c4ce77cb81bc0ababde28b58a3d6150a
Showing with 2 additions and 1 deletion.
  1. +2 −1 nikola/nikola.py
@@ -1067,7 +1067,8 @@ def rewrite_links(self, doc, src, lang):
objs = list(doc.findall('*//img')) + list(doc.findall('*//source'))
for obj in objs:
if 'srcset' in obj.attrib:
urls = obj.attrib['srcset'].split(',')
from doit.tools import set_trace; set_trace()
urls = [u.strip() for u in obj.attrib['srcset'].split(',')]
urls = [self.url_replacer(src, dst, lang) for dst in urls]
obj.set('srcset', ', '.join(urls))

0 comments on commit a987c7c

Please sign in to comment.
You can’t perform that action at this time.