From: alan Date: Mon, 19 Apr 2010 06:55:01 +0000 (+0800) Subject: JSDOC/CompressWhite.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=a4045c6138dc83a4bcb0577da3a0dba7b773208b JSDOC/CompressWhite.js --- diff --git a/JSDOC/CompressWhite.js b/JSDOC/CompressWhite.js index 84fc23c..f40eacb 100644 --- a/JSDOC/CompressWhite.js +++ b/JSDOC/CompressWhite.js @@ -73,6 +73,12 @@ CompressWhite = function (ts, packer) ts.cursor = cu; continue; } + + if (ts.lookTok(1).type == 'NAME' && ts.look(1,true).name == "NEWLINE") { + // presever linebraek + ts.look(0).outData = ts.look(0).data+"\n"; + } + // function a () { ... }; /* if (ts.look(-1).isTypeN(Script.TOKfunction) && ts.look(1).isTypeN(Script.TOKlparen)) {