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:
parent
c2e63f9290
commit
7309c7817d
|
@ -163,7 +163,8 @@ bool is_special;
|
||||||
PrintToken(out, i2->first);
|
PrintToken(out, i2->first);
|
||||||
out << L": ";
|
out << L": ";
|
||||||
|
|
||||||
out << '[';
|
if( i2->second.size() != 1 )
|
||||||
|
out << '[';
|
||||||
|
|
||||||
for(v = 0 ; v < i2->second.size() ; ++v)
|
for(v = 0 ; v < i2->second.size() ; ++v)
|
||||||
{
|
{
|
||||||
|
@ -176,7 +177,8 @@ bool is_special;
|
||||||
out << L",\n";
|
out << L",\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
out << ']';
|
if( i2->second.size() != 1 )
|
||||||
|
out << ']';
|
||||||
|
|
||||||
if( index + 1 < space.table.size() )
|
if( index + 1 < space.table.size() )
|
||||||
out << ',';
|
out << ',';
|
||||||
|
|
Loading…
Reference in New Issue