diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-20 22:28:02 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-20 22:28:02 +0200 |
| commit | 18511686f3fffdae8f4ce15074416ea7d28a3273 (patch) | |
| tree | 8d297f7f2b5ade7a10c7c2942bd416d024911f36 /src/library | |
| parent | 6ff553612765d932975eb6b81f0eb420dc0afd55 (diff) | |
Add missing string cast for marginal
Diffstat (limited to 'src/library')
| -rw-r--r-- | src/library/layout/page.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/layout/page.rs b/src/library/layout/page.rs index ed9a03a4..8db1329f 100644 --- a/src/library/layout/page.rs +++ b/src/library/layout/page.rs @@ -173,6 +173,7 @@ impl Cast<Spanned<Value>> for Marginal { fn cast(value: Spanned<Value>) -> StrResult<Self> { match value.v { Value::None => Ok(Self::None), + Value::Str(v) => Ok(Self::Content(Content::Text(v))), Value::Content(v) => Ok(Self::Content(v)), Value::Func(v) => Ok(Self::Func(v, value.span)), _ => Err("expected none, content or function")?, |
