mirror of
https://github.com/tstack/lnav
synced 2024-11-03 23:15:38 +00:00
[pretty] only start a new line after a comma if we're in a structure
This commit is contained in:
parent
d6d652ec38
commit
5f7344874b
@ -101,10 +101,13 @@ public:
|
||||
this->write_element(el);
|
||||
continue;
|
||||
case DT_COMMA:
|
||||
this->flush_values(true);
|
||||
this->write_element(el);
|
||||
this->start_new_line();
|
||||
continue;
|
||||
if (this->pp_depth > 0) {
|
||||
this->flush_values(true);
|
||||
this->write_element(el);
|
||||
this->start_new_line();
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user