Fix CRLF issue #409.

This commit is contained in:
Rasmus Abrahamsen
2012-09-22 17:32:39 +02:00
committed by Allan Odgaard
parent 9d97fdfdb0
commit 443421be84

View File

@@ -22,7 +22,7 @@ namespace scan
{
for(ssize_t i = 0; i < len; i++)
{
if(last_character == '\n' && first[i] == '\r')
if(last_character == '\r' && first[i] == '\n')
{
bol_offsets.push_back(offset + i+1);
last_character = '\0';