[pretty] only start a new line after a comma if we're in a structure

pull/202/head
Timothy Stack 9 years ago
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…
Cancel
Save