diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-21 16:12:24 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-21 16:12:24 +0100 |
| commit | 1d7e082d1d83d4c7e454a2d08258794d716aea1a (patch) | |
| tree | 73ee43a9d039edbe34c81a4ea6f4ec4f7f9e11cf /src/model/styles.rs | |
| parent | fd7b9d9e1eb8eef60c20e65dfc946c4424f02c8f (diff) | |
Labels
Diffstat (limited to 'src/model/styles.rs')
| -rw-r--r-- | src/model/styles.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs index 76c67370..324b52f5 100644 --- a/src/model/styles.rs +++ b/src/model/styles.rs @@ -350,6 +350,10 @@ pub trait Finalize: 'static + Sync + Send { ) -> SourceResult<Content>; } +/// Indicates that a node cannot be labelled. +#[capability] +pub trait Unlabellable: 'static + Sync + Send {} + /// A show rule recipe. #[derive(Clone, PartialEq, Hash)] pub struct Recipe { @@ -392,9 +396,7 @@ impl Recipe { let make = |s| { let mut content = item!(text)(s); - if let Some(span) = target.span() { - content = content.spanned(span); - } + content.copy_meta(target); content }; |
