diff --git a/anki/template/template.py b/anki/template/template.py index 009898976..92f187bfe 100644 --- a/anki/template/template.py +++ b/anki/template/template.py @@ -97,6 +97,8 @@ class Template: replacer = '' inverted = section[2] == "^" + if val: + val = stripHTMLMedia(val).strip() if (val and not inverted) or (not val and inverted): replacer = inner