I am writing a piece of software, and It require me to handle data I get from a webpage with libcurl. When I get the data, for some reason it has extra line breaks in it. I
void remove_spaces(string data) { int i=0,j=0; while(i