X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FCompressWhite.js;h=f40eacbc4c9604fb8adc21e06644703348cd5105;hp=84fc23cf64bb97ae6f9c2b46dc46076a00b69853;hb=a4045c6138dc83a4bcb0577da3a0dba7b773208b;hpb=4e17bd65efdaea7576a1b8cc363011c3925b2ea9 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)) {