X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FCompressWhite.js;h=6b08e160400f68b030fe69802fdae95460a35f2f;hb=d56985f1898989ac6236528f762e69837f185914;hp=a5a138969a5ba2d11786f600202cca4ef6512819;hpb=b969ec0b365f55fe6592742a747cb7afdd10f1cc;p=gnome.introspection-doc-generator diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index a5a1389..6b08e16 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.. + + 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; @@ -233,7 +242,7 @@ CompressWhite = function (ts, packer) out = ''; while (true) { var tok = ts.nextTok(); - print(tok.toString()); + if (!tok) { break; }