mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
We make some specific cases of tags use 2 space indents.
The case description:
* A tag with opening tag spread over multiple lines and closing tag
on the same line as of the closing angle bracket of the opening tag.
* A tag with opening tag spread over multiple lines and closing tag
not on the same line as of the closing angle bracket of the opening
tag.
Example:
Case 1:
Not linted:
<button type="button"
class="btn btn-primary btn-small">{{t "Yes" }}</button>
After linting:
<button type="button"
class="btn btn-primary btn-small">{{t "Yes" }}</button>
Case 2:
Before linting:
<div class = "foo"
id = "bar"
role = "whatever">
{{ bla }}
</div>
After linting:
<div class = "foo"
id = "bar"
role = "whatever">
{{ bla }}
</div>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| capitalization.py | ||
| css_parser.py | ||
| find_add_class.py | ||
| gitlint-rules.py | ||
| graph.py | ||
| html_branches.py | ||
| html_grep.py | ||
| pretty_print.py | ||
| provision.py | ||
| sanity_check.py | ||
| template_parser.py | ||
| test_script.py | ||
| test_server.py | ||