Commit cf4642cd authored by Paul's avatar Paul
Browse files

Formatting

parent 0ad547aa
......@@ -11,15 +11,15 @@ std::string encode(std::string s)
{
std::stringstream ss;
bool prespace = false;
for(auto c:s)
for(auto c : s)
{
if (std::isspace(c))
if(std::isspace(c))
{
if (not prespace)
if(not prespace)
ss << " ";
prespace = true;
}
else if (std::isprint(c))
else if(std::isprint(c))
{
ss << c;
prespace = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment