X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FTokenReader.vala;h=e3e6096c910a9f55dafc430ae47919137f9412a2;hp=11a853a21b23a415c576e489d759de4473b75166;hb=cec8dfd0781a5265d518eec19209e2aa59a05afc;hpb=519a39ee5b7e241632bf5d8d98eaadecef6bf884 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; },