for complex type expressions, use the expression as the link text

fixes test failure.
This commit is contained in:
Jeff Williams 2013-03-21 12:50:03 -07:00
parent f0224e9845
commit badff421bc

View File

@ -138,7 +138,7 @@ var linkto = exports.linkto = function(longname, linktext, cssClass) {
var parsedType;
// handle complex type expressions that may require multiple links
if (text.search(/[<{(]/) !== -1) {
if (longname && longname.search(/[<{(]/) !== -1) {
parsedType = parseType(longname);
return catharsis.stringify(parsedType, {
cssClass: cssClass,