Skip to content

Commit 56c44d9

Browse files
committed
fix: trim descriptions
1 parent 5d65c8a commit 56c44d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generators/llms-txt/utils/buildApiDocLink.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { transformNodeToString } from '../../../utils/unist.mjs';
1111
*/
1212
export const getEntryDescription = entry => {
1313
if (entry.llmDescription) {
14-
return entry.llmDescription;
14+
return entry.llmDescription.trim();
1515
}
1616

1717
const descriptionNode = entry.content.children.find(

0 commit comments

Comments
 (0)