From 05c27a581ece00e27c16be3d9ac69f3eefedcd4b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 13 May 2022 16:27:44 +0200 Subject: Automatically display value in more places --- src/library/layout/page.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library/layout') 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()) } }) } -- cgit v1.2.3