X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fparser.lex;h=291fc9c5a419b1b4a87d00c44c56b061db0144c7;hb=8c2ec81f5bf33f6cda0ba5fdfa6a289d14e49315;hp=297bab226d82210ee0f9ad123bf72461d6d4ddde;hpb=9c7bd5ecdc923b1c30d48fe4178bad8ca8628052;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] == '"') {