diff options
Diffstat (limited to 'src/library')
| -rw-r--r-- | src/library/layout/page.rs | 2 | ||||
| -rw-r--r-- | src/library/structure/list.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library/layout/page.rs b/src/library/layout/page.rs index 324ac285..ed9a03a4 100644 --- a/src/library/layout/page.rs +++ b/src/library/layout/page.rs @@ -159,7 +159,7 @@ impl Marginal { Self::Content(content) => Some(content.clone()), Self::Func(func, span) => { let args = Args::from_values(*span, [Value::Int(page as i64)]); - func.call(ctx, args)?.cast().at(*span)? + Some(func.call(ctx, args)?.display()) } }) } diff --git a/src/library/structure/list.rs b/src/library/structure/list.rs index 6bcc9f3e..7686a3f4 100644 --- a/src/library/structure/list.rs +++ b/src/library/structure/list.rs @@ -217,7 +217,7 @@ impl Label { Self::Content(content) => content.clone(), Self::Func(func, span) => { let args = Args::from_values(*span, [Value::Int(number as i64)]); - func.call(ctx, args)?.cast().at(*span)? + func.call(ctx, args)?.display() } }) } |
