From cec8dfd0781a5265d518eec19209e2aa59a05afc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 15 Sep 2015 17:11:52 +0800 Subject: [PATCH] JSDOC/TokenReader.vala --- JSDOC/TokenReader.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/JSDOC/TokenReader.vala b/JSDOC/TokenReader.vala index 11a853a..e3e6096 100644 --- a/JSDOC/TokenReader.vala +++ b/JSDOC/TokenReader.vala @@ -290,9 +290,11 @@ namespace JSDOC { } //print("WHITE = " + JSON.stringify(found)); if (this.collapseWhite) { - found = " "; // this might work better if it was a ';' ??? + found = " "; // this might work better if it was a '\n' ??? + } + if (this.keepWhite) { + tokens.push(new Token(found, "WHIT", "SPACE", this.line)); } - if (this.keepWhite) tokens.push(new Token(found, "WHIT", "SPACE", this.line)); return true; }, -- 2.39.2