X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fparser.lex;h=291fc9c5a419b1b4a87d00c44c56b061db0144c7;hb=f9b025bc6ebfa93d38ea20ef69e0e65d7f2f257b;hp=297bab226d82210ee0f9ad123bf72461d6d4ddde;hpb=cba7006af456286786a63ff43c47bfe13e201497;p=swftools.git diff --git a/src/parser.lex b/src/parser.lex index 297bab2..291fc9c 100644 --- a/src/parser.lex +++ b/src/parser.lex @@ -168,7 +168,7 @@ void handleInclude(char*text, int len) while(len >=1 && (text[0] == ' ' || text[0] == '\t')) { text++;len--; } - while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n')) { + while(len >= 1 && (text[len-1] == ' ' || text[len-1] == "\r" || text[len-1] == '\n')) { len--; } if(len >= 2 && text[0] == '"' && text[len-1] == '"') {