mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
linters: Handle comments better in template parser.
We now properly parse HTML comments that have HTML block tags or handlebars/Django blocks within them.
This commit is contained in:
@@ -59,6 +59,14 @@ class ParserTest(unittest.TestCase):
|
||||
'''
|
||||
validate(text=my_html)
|
||||
|
||||
def test_validate_comment(self):
|
||||
# type: () -> None
|
||||
my_html = '''
|
||||
<!---
|
||||
<h1>foo</h1>
|
||||
-->'''
|
||||
validate(text=my_html)
|
||||
|
||||
def test_validate_django(self):
|
||||
# type: () -> None
|
||||
my_html = '''
|
||||
|
||||
Reference in New Issue
Block a user