mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
fix: serialize array correctly
This commit is contained in:
@@ -333,6 +333,11 @@ struct serializer
|
|||||||
current_line += ',';
|
current_line += ',';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!current_line.empty())
|
||||||
|
{
|
||||||
|
if(current_line.back() != '\n') {current_line += '\n';}
|
||||||
|
token += current_line;
|
||||||
|
}
|
||||||
token += "]\n";
|
token += "]\n";
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user