JSDOC/DocTag.js
[gnome.introspection-doc-generator] / JSDOC / DocTag.js
index 4ac2783..e761d1f 100644 (file)
@@ -94,12 +94,14 @@ DocTag = XObject.define(
             
             // if type == @cfg, and matches (|....|...)
             
-            src = str.trim();
+            src = src.trim();
             if (this.title == "cfg" && src.match(/^\([^)]+\)/)) {
                 var m = src.match(/^\(([^)]+)\)/);
                 if (m[1].match(/\|/)) {
                     var opts = m[1].split(/\|/);
                     this.optvalues = opts;
+                    src = src.substring(m[0].length).trim();
+                    
                     
                 }