diff options
author | Andrew Pantuso <ajpantuso@gmail.com> | 2023-04-24 10:03:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 16:03:04 +0200 |
commit | e5cec9ea50963a45bb1c209abc747ee1983dcabd (patch) | |
tree | 13168e78d1c9c5551b736bf69ce2438bb41165be /src/formatter/model.rs | |
parent | 43651af4b9e269aaa741c34238e35c8acdad8155 (diff) |
fix(style): ensure nested style variables are processed during formatting (#5120)
fix: ensure nested style variables are processed during formatting
Diffstat (limited to 'src/formatter/model.rs')
-rw-r--r-- | src/formatter/model.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/formatter/model.rs b/src/formatter/model.rs index 291bf80be..2db307750 100644 --- a/src/formatter/model.rs +++ b/src/formatter/model.rs @@ -91,6 +91,7 @@ impl<'a> StyleVariableHolder<Cow<'a, str>> for Vec<FormatElement<'a>> { self.iter().fold(BTreeSet::new(), |mut acc, el| match el { FormatElement::TextGroup(textgroup) => { acc.extend(textgroup.style.get_style_variables()); + acc.extend(textgroup.format.get_style_variables()); acc } FormatElement::Conditional(format) => { |