Skip to content

Commit cdbae91

Browse files
author
Daniel Kroening
committed
extra indent in arrays of non-objects
1 parent 8879404 commit cdbae91

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/util/json.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ void jsont::output_rec(std::ostream &out, unsigned indent) const
141141
}
142142

143143
if(array.back().is_object())
144-
out << '\n';
144+
out << '\n' << std::string(indent*2, ' ');
145145
else
146146
out << ' ';
147-
148-
out << std::string(indent*2, ' ');
149147
}
150148

151149
out << ']';

0 commit comments

Comments
 (0)