Build tag text correctly for all tags

This commit is contained in:
Sebastian Pahnke 2021-06-11 14:43:04 +02:00
parent 3fb5fa051e
commit b8e0740b41

View file

@ -576,7 +576,7 @@ function tagToString(tag: ts.JSDocTagInfo): string {
tagLabel += `\`${paramName.text}\``; tagLabel += `\`${paramName.text}\``;
if (rest.length > 0) tagLabel += `${rest.map(r => r.text).join(' ')}`; if (rest.length > 0) tagLabel += `${rest.map(r => r.text).join(' ')}`;
} else if (tag.text) { } else if (tag.text) {
tagLabel += `${tag.text}`; tagLabel += `${tag.text.map(r => r.text).join(' ')}`;
} }
return tagLabel; return tagLabel;
} }