Skip to content

Commit

Permalink
bugfix in accessor code
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Keyes committed Aug 26, 2015
1 parent 32967cc commit af510d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/human_getset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ std::string human_getset::set_single(std::string name, int element, std::string
output.append(" ");
}
}

// Final check for trailing spaces
if(output[output.size()-1] == ' '){
output.erase(output.size()-1,1);
}

return output;
}
Expand Down

0 comments on commit af510d2

Please sign in to comment.