JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 04:11:55 +0000 (12:11 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 04:11:55 +0000 (12:11 +0800)
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 = {