From: Alan Knowles Date: Thu, 15 Jul 2010 04:11:55 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=419f7c3b6fbc943e91396581a7ce4e32edeac7c2 JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index d8b7f09..c6e2d65 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -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 = {