mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
In This commit we extend the work being done by @showell in PR#1778
to develop a tool to pretty print html and our handlebar templates
in order to enforce our style convention of 4 Space indentation in
templates.
This commit introduces following changes:
* Fix Py3 Compatibility.
* Add ability to prettify in cases when html tags are not the
starting of a line and addition of test cases for it.
* Add ability to lint handlebar tags and add test cases for it.
* Add {{else}} as special case of indent.
* Add test cases in general to testing new tool.
@showell Helped me throughout and reviewed this commit.
Fixes #1778
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| api_tests.py | ||
| css_parser.py | ||
| find_add_class.py | ||
| html_branches.py | ||
| html_grep.py | ||
| pretty_print.py | ||
| provision.py | ||
| sanity_check.py | ||
| template_parser.py | ||
| test_script.py | ||
| test_server.py | ||