|
From: | @ndré THEVENIN |
Subject: | [Swftools-common] Compilation problem with swfc |
Date: | Sun, 03 Feb 2008 11:34:05 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.12) Gecko/20050915 |
Hello, When I try to compile a script with swfc, I have a problem with the .include directive My files are PC formatted (end of lines with 0d 0a), and the HandleInclude function doesn't =handle correctly thes lines. I just sugggest you a small modification in this function while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n' )) { len--; } could become while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n' || text[len-1] == '\r')) { len--; } and PC (and also Mac) files will be correctly handled Regards |
[Prev in Thread] | Current Thread | [Next in Thread] |