mirror of
https://github.com/zulip/zulip.git
synced 2026-06-18 21:01:52 +08:00
In this commit we modify our CSS parser not only to render the text from
a given CSS tokens produced but also enforce 4 space indentation on it.
Also we enforce some basic rules we would like our CSS to follow such as
* Always have "\n" in between the starting of body({) and body itself
and ending of the body and the closing of body(}).
* Use 4 space indents while having but something within the block
structure ( { .... } ).
* Have single space after ',' in between multiple selectors.
* Have only a single space in between selector and the starting of
block structure ({ ... }) if block structure starts on same line as
of selector.
eg. body {
body content here
}
Notice single space between 'body' and '{'.
Fixes: #1659.
|
||
|---|---|---|
| .. | ||
| test_template_data | ||
| __init__.py | ||
| test_capitalization_checker.py | ||
| test_css_parser.py | ||
| test_html_branches.py | ||
| test_pretty_print.py | ||
| test_template_parser.py | ||