summaryrefslogtreecommitdiff
path: root/src/library/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/layout')
-rw-r--r--src/library/layout/page.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/layout/page.rs b/src/library/layout/page.rs
index 0a7c7579..afcc4855 100644
--- a/src/library/layout/page.rs
+++ b/src/library/layout/page.rs
@@ -198,7 +198,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::Str(v) => Ok(Self::Content(Content::Text(v.into()))),
Value::Content(v) => Ok(Self::Content(v)),
Value::Func(v) => Ok(Self::Func(v, value.span)),
v => Err(format!(