mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14:21 +01:00
adding exception for <nav> tags in html validation
This commit is contained in:
parent
a56c491ee1
commit
f13961790f
@ -82,7 +82,10 @@ class HtmlValidationFailed(Exception):
|
|||||||
|
|
||||||
def _is_html_error(line):
|
def _is_html_error(line):
|
||||||
ret = True
|
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):
|
if re.match(p, line):
|
||||||
ret = False
|
ret = False
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user