Atlas readLine to not skip starting \n.

This commit is contained in:
NathanSweet 2013-04-08 05:22:20 +02:00
parent 5bab2830a9
commit 5fbef05423

View File

@ -86,9 +86,8 @@ static int readLine (const char* begin, const char* end, Str* str) {
str->begin = nextStart;
/* Find next delimiter. */
do {
while (nextStart != end && *nextStart != '\n')
nextStart++;
} while (nextStart != end && *nextStart != '\n');
str->end = nextStart;
trim(str);