diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-24 14:39:53 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-24 14:53:43 +0200 |
| commit | 50e4002a2a65c27f46895103c59cb775ca60d16d (patch) | |
| tree | dbd43c16ae8456536c89d64d2cfff293bb6b1148 /src/library/structure/table.rs | |
| parent | 04fb8b288aa7c80607da79db7d085a4820b95a9d (diff) | |
Split `show` into `realize` and `finalize`
Diffstat (limited to 'src/library/structure/table.rs')
| -rw-r--r-- | src/library/structure/table.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/library/structure/table.rs b/src/library/structure/table.rs index aefd01b5..191d3dd3 100644 --- a/src/library/structure/table.rs +++ b/src/library/structure/table.rs @@ -64,16 +64,7 @@ impl Show for TableNode { } } - fn show( - &self, - _: &mut Context, - styles: StyleChain, - realized: Option<Content>, - ) -> TypResult<Content> { - if let Some(content) = realized { - return Ok(content); - } - + fn realize(&self, _: &mut Context, styles: StyleChain) -> TypResult<Content> { let primary = styles.get(Self::PRIMARY); let secondary = styles.get(Self::SECONDARY); let stroke = styles.get(Self::STROKE).map(RawStroke::unwrap_or_default); |
