Fixed vector_delimited excluding delimiter
Change-Id: I3e758d44b9845d6df91332bb609b4b7ad88659ac
This commit is contained in:
parent
11198f10f5
commit
fd51fadaac
|
@ -360,15 +360,15 @@ struct ToStringVisitor : public IterationVisitor {
|
|||
void Unknown(const uint8_t *) { s += "(?)"; }
|
||||
void StartVector() {
|
||||
s += "[";
|
||||
s += d;
|
||||
if (vector_delimited) {
|
||||
s += d;
|
||||
indent_level++;
|
||||
append_indent();
|
||||
}
|
||||
}
|
||||
void EndVector() {
|
||||
s += d;
|
||||
if (vector_delimited) {
|
||||
s += d;
|
||||
indent_level--;
|
||||
append_indent();
|
||||
}
|
||||
|
@ -378,8 +378,8 @@ struct ToStringVisitor : public IterationVisitor {
|
|||
const TypeTable * /*type_table*/, const uint8_t * /*val*/) {
|
||||
if (i) {
|
||||
s += ",";
|
||||
s += d;
|
||||
if (vector_delimited) {
|
||||
s += d;
|
||||
append_indent();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue