From a4045c6138dc83a4bcb0577da3a0dba7b773208b Mon Sep 17 00:00:00 2001 From: alan Date: Mon, 19 Apr 2010 14:55:01 +0800 Subject: [PATCH] JSDOC/CompressWhite.js --- JSDOC/CompressWhite.js | 6 ++++++ 1 file changed, 6 insertions(+) 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)) { -- 2.39.2