From: alan Date: Wed, 21 Apr 2010 08:30:06 +0000 (+0800) Subject: JSDOC/CompressWhite.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=d488d4acdd711214ab2708b3010659b5a4b03884 JSDOC/CompressWhite.js --- diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index 3048b7f..a047b5c 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -32,7 +32,16 @@ CompressWhite = function (ts, packer) } - + if (tok.data == "}") { + + if (ts.lookTok(1).type == 'NAME' && ts.look(1,true).name == "NEWLINE") { + + ts.look(0).outData = ts.look(0).data+"\n"; + } + // restore.. + ts.cursor = cu; + continue; + } // add semi-colon's where linebreaks are used... - not foolproof yet.! if (tok.type == "NAME") { //var tokident = ts.look(-1).data + tok.data + ts.look(1).data + ts.look(2).data;