mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
adding exception for <nav> tags in html validation
This commit is contained in:
parent
a56c491ee1
commit
f13961790f
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue