X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenReader.vala;h=e3e6096c910a9f55dafc430ae47919137f9412a2;hb=cec8dfd0781a5265d518eec19209e2aa59a05afc;hp=b4127d7e6bdafa68f65d1a8d5f7ab60c5470893c;hpb=ac314692996f502059bcee48b7efbe5d2fbcf3ba;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenReader.vala b/JSDOC/TokenReader.vala index b4127d7..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 = " "; + 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; },