y-Web: fix glcd menues

This commit is contained in:
GetAway
2020-07-05 23:03:06 +02:00
parent 99ea9e1937
commit 68cee82a21
4 changed files with 22 additions and 6 deletions

View File

@@ -101,6 +101,10 @@ bool ySplitString(std::string str, std::string delimiter, std::string& left,
left = str; //default if not found
right = "";
}
replace(left, "\r\n", "");
replace(left, "\n", "");
replace(right, "\r\n", "");
replace(right, "\n", "");
return (pos != std::string::npos);
}
//-------------------------------------------------------------------------