Commit cf4642cd authored by Paul's avatar Paul
Browse files

Formatting

parent 0ad547aa
...@@ -11,15 +11,15 @@ std::string encode(std::string s) ...@@ -11,15 +11,15 @@ std::string encode(std::string s)
{ {
std::stringstream ss; std::stringstream ss;
bool prespace = false; 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 << " "; ss << " ";
prespace = true; prespace = true;
} }
else if (std::isprint(c)) else if(std::isprint(c))
{ {
ss << c; ss << c;
prespace = false; 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