mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
accept MS-DOS end-of-line characters
This commit is contained in:
parent
cc20fc919b
commit
5fea988239
@ -35,7 +35,7 @@ INLINE std::string ChanReadLine(istream& is) {
|
||||
#endif /* BROKEN_EXCEPTIONS */
|
||||
std::string S;
|
||||
std::getline(is, S);
|
||||
size_t i = S.find_first_not_of(" /t/f/r/n");
|
||||
size_t i = S.find_first_not_of(" \t\f\r\n");
|
||||
if ((i == std::string::npos) || (S[i] == ';'))
|
||||
return ChanReadLine(is); // all white space or comment
|
||||
if (i != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user