JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index d8b7f09..c6e2d65 100644 (file)
@@ -201,11 +201,18 @@ ScopeParser.prototype = {
         
         if (this.dumpLine.scope == scope.length && this.dumpLine.brace == brace) {
             this.dumpLine.str += ' ' + tok.data;
+            if (this.dumpLine.str.length < 80) {
+                return;
+            }
+            print(
+                (new Array(this.dumpLine.scope)).join("  ") + '|' + 
+                (new Array(this.dumpLine.brace)).join("  ") + this.dumpLine.str);
+            this.dumpLine.str = '';
             return;
         }
         print(
             (new Array(this.dumpLine.scope)).join("  ") + '|' + 
-            (new Array(brace)).join("  ") + this.dumpLine.str); 
+            (new Array(this.dumpLine.brace)).join("  ") + this.dumpLine.str); 
         
         
         this.dumpLine = {