Skip to content

Commit

Permalink
pass include_children = true to text_ranges in formatting (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
usamoi authored Nov 6, 2024
1 parent a52472d commit 37214e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/taplo/src/formatter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ where
let matched = dom.find_all_matches(keys, false)?;

for (_, node) in matched {
s.extend(node.text_ranges(false).map(|r| (r, opts.clone())));
s.extend(node.text_ranges(true).map(|r| (r, opts.clone())));
}
}

Expand Down

0 comments on commit 37214e0

Please sign in to comment.