JSDOC/CompressWhite.js
[gnome.introspection-doc-generator] / JSDOC / CompressWhite.js
index e284e80..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) {
@@ -280,10 +282,13 @@ CompressWhite =  function (ts, packer, keepWhite)
             break;
         }
         if (tok.type == "COMM") {
-            tok.outData == '\n';
+            tok.outData = '\n';
         }
         
-        if (tok.type == "NAME"  && tok.identifier && tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
+        print("INDENTIFIER : " + tok.type + ':' + tok.data));
+        
+        if (tok.type == "NAME"  && tok.identifier 
+            && tok.identifier.mungedValue && tok.identifier.mungedValue.length) {
             //f.write(tok.identifier.mungedValue);
             out += tok.identifier.mungedValue;
             continue;