summaryrefslogtreecommitdiffstats
path: root/src/formatter/model.rs
diff options
context:
space:
mode:
authorAndrew Pantuso <ajpantuso@gmail.com>2023-04-24 10:03:04 -0400
committerGitHub <noreply@github.com>2023-04-24 16:03:04 +0200
commite5cec9ea50963a45bb1c209abc747ee1983dcabd (patch)
tree13168e78d1c9c5551b736bf69ce2438bb41165be /src/formatter/model.rs
parent43651af4b9e269aaa741c34238e35c8acdad8155 (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.rs1
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) => {