src/cm/views/texts.py
changeset 457 f62f7f0bcaa4
parent 455 33c7e20efcb7
child 480 b9b802261109
--- a/src/cm/views/texts.py	Thu Aug 09 10:11:21 2012 +0200
+++ b/src/cm/views/texts.py	Thu Aug 09 11:06:46 2012 +0200
@@ -302,7 +302,7 @@
   Replaces (html) links to attachs with embeded inline images
   """
   content = re.sub("%s" %settings.SITE_URL, '', content) # changes absolute urls to relative urls
-  attach_re = r'(?:/text/(?P<key>\w*))?/attach/(?P<attach_key>\w*)/'
+  attach_re = r'"(?:/text/(?P<key>\w*))?/attach/(?P<attach_key>\w*)/'
   attach_str_textversion = r'/text/%s/attach/%s/'
   attach_str = r'/attach/%s/'
   for match in re.findall(attach_re, content):