fix(docs): properly close the optional ] in directive signatures

This commit is contained in:
Igor Minar 2012-03-13 17:50:38 -07:00
parent 13f31602f3
commit ce4b630524

View file

@ -421,8 +421,8 @@ Doc.prototype = {
} else {
dom.text(BOOLEAN_ATTR[param.name] ? '' : infix );
dom.text(('{' + param.type + '}').replace(/^\{\'(.*)\'\}$/, '$1'));
dom.text(param.optional ? ']' : '');
dom.text(suffix);
dom.text(param.optional && !skip ? ']' : '');
}
});
}