fix stripping of html in conditional replacement

This commit is contained in:
Damien Elmes 2018-09-13 14:38:18 +10:00
parent aef584f0a8
commit b75d9040de

View File

@ -97,6 +97,8 @@ class Template:
replacer = '' replacer = ''
inverted = section[2] == "^" inverted = section[2] == "^"
if val:
val = stripHTMLMedia(val).strip()
if (val and not inverted) or (not val and inverted): if (val and not inverted) or (not val and inverted):
replacer = inner replacer = inner