Further tweaks to jsdoc tag rendering

This commit is contained in:
Matt Bierner 2017-05-10 16:32:09 -07:00
parent c047734f64
commit 9587f8f379

View file

@ -21,9 +21,9 @@ export function tagsMarkdownPreview(tags: Proto.JSDocTagInfo[]): string {
if (!tag.text) {
return label;
}
return label + (tag.text.match(/\r\n|\n/g) ? '\n' + tag.text : `${tag.text}`);
return label + (tag.text.match(/\r\n|\n/g) ? ' \n' + tag.text : `${tag.text}`);
})
.join(' \n');
.join(' \n\n');
}
export function tagsPlainPreview(tags: Proto.JSDocTagInfo[]): string {