remove annoying \n

master
Aevann 2024-02-12 09:19:36 +02:00
parent fa7963956e
commit da4904c8a1
1 changed files with 0 additions and 1 deletions

View File

@ -11,7 +11,6 @@ allowed_tags_runstime = ('div', 'input', 'label', 'score', 'button')
allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform') allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform')
def allowed_attributes(tag, name, value): def allowed_attributes(tag, name, value):
if name == 'style': if name == 'style':
value = value.lower() value = value.lower()
if 'transform' in value and 'scale' in value and ('rotate' in value or 'skew' in value): if 'transform' in value and 'scale' in value and ('rotate' in value or 'skew' in value):