mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(prettier) Print intend in doc debug view (#1419)
This commit is contained in:
parent
5543e8c435
commit
91ee3e8bfc
1 changed files with 2 additions and 0 deletions
|
|
@ -108,12 +108,14 @@ fn print_do_to_debug(doc: &Doc<'_>) -> std::string::String {
|
|||
string.push_str("]\n");
|
||||
}
|
||||
Doc::Indent(contents) => {
|
||||
string.push_str("indent([");
|
||||
for (idx, doc) in contents.iter().enumerate() {
|
||||
string.push_str(&print_do_to_debug(doc));
|
||||
if idx != contents.len() - 1 {
|
||||
string.push_str(", ");
|
||||
}
|
||||
}
|
||||
string.push_str("])");
|
||||
}
|
||||
Doc::Group(contents) => {
|
||||
string.push_str("group([\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue