mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(prettier) Fix debug printing if IfBreak` doc (#1561)
This commit is contained in:
parent
92c1d9d527
commit
fe7f6efff2
1 changed files with 2 additions and 2 deletions
|
|
@ -269,12 +269,12 @@ fn print_doc_to_debug(doc: &Doc<'_>) -> std::string::String {
|
|||
}
|
||||
Doc::IfBreak(if_break) => {
|
||||
string.push_str(&format!(
|
||||
"ifBreak({}, {})",
|
||||
"ifBreak({}, {}",
|
||||
print_doc_to_debug(&if_break.break_contents),
|
||||
print_doc_to_debug(&if_break.flat_content)
|
||||
));
|
||||
if let Some(group_id) = if_break.group_id {
|
||||
string.push_str(&format!("{{ groupId: {group_id} }}"));
|
||||
string.push_str(&format!(", {{ groupId: {group_id} }}"));
|
||||
}
|
||||
string.push(')');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue