in spacetojson: if there is only one item then do not put it in the table

git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1170 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 4 years ago
parent c2e63f9290
commit 7309c7817d

@ -163,7 +163,8 @@ bool is_special;
PrintToken(out, i2->first);
out << L": ";
out << '[';
if( i2->second.size() != 1 )
out << '[';
for(v = 0 ; v < i2->second.size() ; ++v)
{
@ -176,7 +177,8 @@ bool is_special;
out << L",\n";
}
out << ']';
if( i2->second.size() != 1 )
out << ']';
if( index + 1 < space.table.size() )
out << ',';

Loading…
Cancel
Save