From: Alan Knowles Date: Wed, 14 Jul 2010 08:19:18 +0000 (+0800) Subject: JSDOC/TokenReader.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=ee5d780c935509ac550b0d9c9114f86f8bb81500 JSDOC/TokenReader.js --- diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index f6c6725..9713ec1 100644 --- a/JSDOC/TokenReader.js +++ b/JSDOC/TokenReader.js @@ -162,6 +162,12 @@ TokenReader = XObject.define( found = "\n"; } if (this.keepWhite) { + var last = tokens.shift(); + if (!last.is("WHITE")) { + tokens.push(last); + } + + tokens.push(new Token(found, "WHIT", "NEWLINE", this.line)); } return true;