read_space : function(/**JSDOC.TokenStream*/stream, tokens) {
var found = "";
- while (!stream.look().eof && Lang.isSpace(stream.look())) {
- if (Lang.isNewline()) break;
+ while (!stream.look().eof && Lang.isSpace(stream.look()) && !Lang.isNewline(stream.look())) {
found += stream.next();
}
if (found === "") {
return false;
}
- print("WHITE = " + JSON.stringify(found));
+ //print("WHITE = " + JSON.stringify(found));
if (this.collapseWhite) found = " ";
if (this.keepWhite) tokens.push(new Token(found, "WHIT", "SPACE", this.line));
return true;