JSDOC/CompressWhite.js
[gnome.introspection-doc-generator] / JSDOC / CompressWhite.js
index 86ef6fa..f80c3cc 100644 (file)
@@ -15,6 +15,8 @@ CompressWhite =  function (ts, packer, keepWhite)
     //var str = File.read(fn);
     var rep_var = 1;
     
+    
+    
     while (true) {
         var tok = ts.next();
         if (!tok) {
@@ -275,15 +277,18 @@ CompressWhite =  function (ts, packer, keepWhite)
     while (true) {
         
         tok = keepWhite ? ts.next() : ts.nextTok();
-        if (tok.type == "COMM") {
-            tok.outDate == '\n';
-        }
+        
         if (!tok) {
             break;
         }
+        if (tok.type == "COMM") {
+            tok.outData = '\n';
+        }
         
+        print("INDENTIFIER : " + tok.type + ':' + tok.data));
         
-        if (tok.type == "NAME"  && tok.identifier && tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
+        if (tok.type == "NAME"  && tok.identifier 
+            && tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
             //f.write(tok.identifier.mungedValue);
             out += tok.identifier.mungedValue;
             continue;