use compressed output in doc example
makes this feature more discoverable, as it's typically what users want
This commit is contained in:
parent
23abe152bd
commit
3b7f4dd039
@ -18,9 +18,9 @@ implementation.
|
|||||||
fn main() -> Result<(), Box<grass::Error>> {
|
fn main() -> Result<(), Box<grass::Error>> {
|
||||||
let css = grass::from_string(
|
let css = grass::from_string(
|
||||||
"a { b { color: &; } }".to_owned(),
|
"a { b { color: &; } }".to_owned(),
|
||||||
&grass::Options::default()
|
&grass::Options::default().style(grass::OutputStyle::Compressed)
|
||||||
)?;
|
)?;
|
||||||
assert_eq!(css, "a b {\n color: a b;\n}\n");
|
assert_eq!(css, "a b{color:a b}");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user