diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-13 16:27:44 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-13 16:27:44 +0200 |
| commit | 05c27a581ece00e27c16be3d9ac69f3eefedcd4b (patch) | |
| tree | ddd1dfb9598d0b629ce90bb963d194dceb0b4b97 /src/library/layout | |
| parent | 11f1f0818b990be1ed4a16652b7f30bf11159237 (diff) | |
Automatically display value in more places
Diffstat (limited to 'src/library/layout')
| -rw-r--r-- | src/library/layout/page.rs | 2 |
1 files changed, 1 insertions, 1 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()) } }) } |
