Skip to content

Commit

Permalink
fix: move return tag to tags with desc as name
Browse files Browse the repository at this point in the history
Before moving the return tag to the new group, even on inline mode, it was
rendering the description in a column format.
Now, it will correctly move it to a new line in inline mode, and in column
mode, it will align it with the name property, instead of the description,
so the white space will be reduced.
  • Loading branch information
homer0 committed Jul 21, 2023
1 parent 83c2b57 commit 1dc8632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fns/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const getTagsWithDescriptionAsName = () => [
'summary',
'throws',
'todo',
'returns',
'return',
];
/**
* Gets a list of tags that need to be in column format.
Expand All @@ -79,8 +81,6 @@ const getTagsWithNameAsDescription = () => [
'see',
'borrows',
'yields',
'returns',
'return',
];
/**
* Gets the list of languages the plugin supports.
Expand Down

0 comments on commit 1dc8632

Please sign in to comment.