Fix `Cast` implementation of `LayoutNode`
This commit is contained in:
parent
84bd3454df
commit
64f8f981c2
|
|
@ -689,6 +689,8 @@ castable! {
|
||||||
castable! {
|
castable! {
|
||||||
LayoutNode,
|
LayoutNode,
|
||||||
Expected: "content",
|
Expected: "content",
|
||||||
|
Value::None => Self::default(),
|
||||||
|
Value::Str(text) => Content::Text(text).pack(),
|
||||||
Value::Content(content) => content.pack(),
|
Value::Content(content) => content.pack(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue