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