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:
@@ -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 << ',';
|
||||
|
Reference in New Issue
Block a user