summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2016-02-18 20:31:30 -0500
committerluxagraf <sng@luxagraf.net>2016-02-18 20:31:30 -0500
commit38c9ec961457b7dbd9f3396779d324dd85548265 (patch)
treefef1f0d09a3793d6bf48f61193c37abdfa15c599
parent8c01e119e6f0a26453d3aafbad04a7de468064a4 (diff)
changed parser again.
-rw-r--r--app/lib/templatetags/templatetags/amp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/templatetags/templatetags/amp.py b/app/lib/templatetags/templatetags/amp.py
index 32fe244..b20c9a9 100644
--- a/app/lib/templatetags/templatetags/amp.py
+++ b/app/lib/templatetags/templatetags/amp.py
@@ -29,6 +29,7 @@ def remove_img_tags(text):
except:
new_tag = soup.new_tag("amp-img", alt=img["alt"], width=width, height=height, src=img['src'])
img.replace_with(new_tag)
+ soup = soup.body.next
return soup.prettify()