diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-30 19:40:29 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-30 20:00:50 +0100 |
| commit | a6d90c1bf1e9fefa0af04206909a40e112d6bb14 (patch) | |
| tree | fc16276142f74b9a50102a2e855942f7e2593c25 /library/src/text | |
| parent | f70cea508cd30fa40770ea989fe2a19e715a357b (diff) | |
Numbering functions
Diffstat (limited to 'library/src/text')
| -rw-r--r-- | library/src/text/raw.rs | 9 |
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) } } |
