1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-25 02:34:31 +01:00

adding exception for <nav> tags in html validation

This commit is contained in:
kakwa 2019-02-09 18:40:48 +01:00
parent a56c491ee1
commit f13961790f

View File

@ -82,7 +82,10 @@ class HtmlValidationFailed(Exception):
def _is_html_error(line):
ret = True
for p in [r'.*Warning: trimming empty <span>.*']:
for p in [
r'.*Warning: trimming empty <span>.*',
r'.*Error: <nav> is not recognized!.*'
]:
if re.match(p, line):
ret = False
return ret