mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 05:17:59 +03:00
feat: prettify TOMLMapToString
This commit is contained in:
@@ -95,6 +95,7 @@ class toml_node
|
|||||||
std::string *result = new std::string();
|
std::string *result = new std::string();
|
||||||
TOMLMap::iterator it;
|
TOMLMap::iterator it;
|
||||||
|
|
||||||
|
ss << "{\n";
|
||||||
for (it = map->begin(); it != map->end(); ++it)
|
for (it = map->begin(); it != map->end(); ++it)
|
||||||
{
|
{
|
||||||
ss << it->first
|
ss << it->first
|
||||||
@@ -103,6 +104,8 @@ class toml_node
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ss << "}" << std::endl;
|
||||||
|
|
||||||
/* ss >> *result; */
|
/* ss >> *result; */
|
||||||
*result = ss.str();
|
*result = ss.str();
|
||||||
return (result);
|
return (result);
|
||||||
|
|||||||
Reference in New Issue
Block a user