From: Alan Knowles Date: Thu, 15 Jul 2010 07:33:39 +0000 (+0800) Subject: JSDOC/CompressWhite.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=64b88d6ed1c4034fb5c0bc15175d3f7b08bc6acb JSDOC/CompressWhite.js --- diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index 5c7ffec..60e1d28 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -21,9 +21,7 @@ CompressWhite = function (ts, packer, keepWhite) break; } if (tok.type == "WHIT") { - if (keepWhite) { - ts.look(0).outData = ts.look(0).data; - } + continue; //if (tok._isDoc) { // continue; @@ -273,8 +271,10 @@ CompressWhite = function (ts, packer, keepWhite) var outoff = 0; out.length = ts.slen; // prealloc. out = ''; + var tok; while (true) { - var tok = ts.nextTok(); + + tok = keepWhite ? ts.next() : ts.nextTok(); if (!tok) { break;