Value indent delta format

This commit is contained in:
Michael Davidsaver
2021-01-26 19:06:51 -08:00
parent 1aa0f1a611
commit 10c1d5ac3b
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ struct FmtDelta {
if(verytop && !val.isMarked())
return;
strm<<prefix;
strm<<indent{}<<prefix;
if(!verytop)
strm<<" ";
strm<<val.type().name();
@@ -82,7 +82,7 @@ struct FmtDelta {
for(auto idx : range(aval.size())) {
std::ostringstream strm;
strm<<prefix<<'['<<idx<<']';
strm<<indent{}<<prefix<<'['<<idx<<']';
top(strm.str(), aval[idx], false);
}
@@ -100,7 +100,7 @@ struct FmtDelta {
void top(const std::string& prefix, const Value& val, bool verytop)
{
if(!val) {
strm<<prefix;
strm<<indent{}<<prefix;
if(!verytop)
strm<<' ';
strm<<"null\n";