Skip to content

Commit

Permalink
CSS: Updating the documentation for the 'newline_between_rules'
Browse files Browse the repository at this point in the history
  • Loading branch information
websiddu committed Feb 3, 2015
1 parent a13f8ce commit e1f7d38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/lib/beautify-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
selector_separator_newline (true) - separate selectors with newline or
not (e.g. "a,\nbr" or "a, br")
end_with_newline (false) - end with a newline
newline_between_rules (true) - add a new line after every css rule
e.g
Expand All @@ -52,6 +53,7 @@
'indent_char': '\t',
'selector_separator': ' ',
'end_with_newline': false,
'newline_between_rules': true
});
*/

Expand Down
2 changes: 1 addition & 1 deletion js/test/beautify-css-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function run_css_tests(test_obj, Urlencoded, js_beautify, html_beautify, css_bea
t('@font-face {\n\tfont-family: "Bitstream Vera Serif Bold";\n\tsrc: url("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf");\n}\n@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo.png);\n\t}\n\t@media screen and (min-device-pixel-ratio: 2) {\n\t\t@font-face {\n\t\t\tfont-family: "Helvetica Neue"\n\t\t}\n\t\t#foo:hover {\n\t\t\tbackground-image: url([email protected]);\n\t\t}\n\t}\n}');
t('a:first-child{color:red;div:first-child{color:black;}}\n.div{height:15px;}', 'a:first-child {\n\tcolor: red;\n\tdiv:first-child {\n\t\tcolor: black;\n\t}\n}\n.div {\n\theight: 15px;\n}');

//
//

// test basic css beautifier
t(".tabs {}");
Expand Down

0 comments on commit e1f7d38

Please sign in to comment.