diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-16 10:41:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-16 10:41:30 +0100 |
| commit | 0e0f340502beada1cd9ee23857f48b91a0d11a90 (patch) | |
| tree | e4e4087260720adf4bab57edeac6a3d3cb5f14cf /src/library/container.rs | |
| parent | bc118634aca5de415d211cab38c4eaa3d3cca25f (diff) | |
Revert page and inline levels
Diffstat (limited to 'src/library/container.rs')
| -rw-r--r-- | src/library/container.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library/container.rs b/src/library/container.rs index 4b52139f..2bcbbd19 100644 --- a/src/library/container.rs +++ b/src/library/container.rs @@ -5,14 +5,13 @@ use super::{ShapeKind, ShapeNode}; pub fn box_(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> { let width = args.named("width")?; let height = args.named("height")?; - let fill = args.named("fill")?; let body: Template = args.find().unwrap_or_default(); Ok(Value::Template(Template::from_inline(move |style| { ShapeNode { shape: ShapeKind::Rect, width, height, - fill: fill.map(Paint::Color), + fill: None, child: Some(body.to_flow(style).pack()), } }))) |
