summaryrefslogtreecommitdiff
path: root/library/src/text
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/text')
-rw-r--r--library/src/text/raw.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/library/src/text/raw.rs b/library/src/text/raw.rs
index c6026f89..2f0ec79e 100644
--- a/library/src/text/raw.rs
+++ b/library/src/text/raw.rs
@@ -132,7 +132,12 @@ impl RawNode {
}
impl Prepare for RawNode {
- fn prepare(&self, _: &mut Vt, mut this: Content, styles: StyleChain) -> Content {
+ fn prepare(
+ &self,
+ _: &mut Vt,
+ mut this: Content,
+ styles: StyleChain,
+ ) -> SourceResult<Content> {
this.push_field(
"lang",
match styles.get(Self::LANG) {
@@ -140,7 +145,7 @@ impl Prepare for RawNode {
None => Value::None,
},
);
- this
+ Ok(this)
}
}