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
This commit is contained in:
Tomasz Sowa 2019-02-19 13:08:07 +00:00
parent c2e63f9290
commit 7309c7817d
1 changed files with 4 additions and 2 deletions

View File

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