To find linebreaks (newline) on a project file I called via the AJAX object, I had to modify the plugin this way:
[code] Exps.prototype.LastData = function (ret)
var str = this.lastData.replace(/\r?\n|\r/g,"\n");
Dunno if I did it well enough but it seems that newline is only an alias of the js "\n"
But in windows I think linebreaks are a "\r\n" and the tokencount function gave me an extra character from the same string when I loaded it from a project file.