forked from lix-project/lix
Doh
This commit is contained in:
parent
ca94b38371
commit
79bba3782c
|
@ -1018,7 +1018,7 @@ string concatStringsSep(const string & sep, const Strings & ss)
|
||||||
string chomp(const string & s)
|
string chomp(const string & s)
|
||||||
{
|
{
|
||||||
size_t i = s.find_last_not_of(" \n\r\t");
|
size_t i = s.find_last_not_of(" \n\r\t");
|
||||||
return i == string::npos ? "" : string(s, 0, i);
|
return i == string::npos ? "" : string(s, 0, i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue