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

This commit is contained in:
Timothy Stack 2015-04-07 17:24:56 -07:00
parent d6d652ec38
commit 5f7344874b

View File

@ -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;
}