mirror of https://github.com/zulip/zulip.git
Don't require link tags to close when checking templates.
This commit is contained in:
parent
7ad7e7a082
commit
bdb9535251
|
@ -71,7 +71,9 @@ def validate(fn, check_indent=True):
|
||||||
if looking_at("<") and not looking_at("</"):
|
if looking_at("<") and not looking_at("</"):
|
||||||
s = get_html_tag(text, state.i)
|
s = get_html_tag(text, state.i)
|
||||||
tag = s[1:-1].split()[0]
|
tag = s[1:-1].split()[0]
|
||||||
ignore = s.startswith('<!--') or s.endswith('/>') or tag in ['meta', '!DOCTYPE']
|
ignore = (s.startswith('<!--') or
|
||||||
|
s.endswith('/>') or
|
||||||
|
tag in ['link', 'meta', '!DOCTYPE'])
|
||||||
if not ignore:
|
if not ignore:
|
||||||
start_tag_matcher(s, tag)
|
start_tag_matcher(s, tag)
|
||||||
advance(len(s))
|
advance(len(s))
|
||||||
|
|
Loading…
Reference in New Issue