diff options
Diffstat (limited to 'library/src/layout/repeat.rs')
| -rw-r--r-- | library/src/layout/repeat.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/layout/repeat.rs b/library/src/layout/repeat.rs index 6e0ce39f..196f19de 100644 --- a/library/src/layout/repeat.rs +++ b/library/src/layout/repeat.rs @@ -1,10 +1,12 @@ use crate::prelude::*; /// Repeats content to fill a line. +#[func] +#[capable(Layout, Inline)] #[derive(Debug, Hash)] pub struct RepeatNode(pub Content); -#[node(Layout, Inline)] +#[node] impl RepeatNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self(args.expect("body")?).pack()) |
