Skip to content

Commit 0872b2e

Browse files
fix: bad indenting for multi-line-breaks (#236)
1 parent 669d31c commit 0872b2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const extendArray = <T>(arr1: T[], arr2: T[]): T[] => {
2828
};
2929

3030
const earliest = (a: number, b: number) => {
31-
if (a === -1 && b === -1) return 0;
31+
if (a === -1 && b === -1) return -2;
3232
if (a === -1) return b;
3333
if (b === -1) return a;
3434
return Math.min(a, b);
@@ -54,7 +54,7 @@ export const wrapComment = (comment: string, additionalTags: DocumentationTag[]
5454
}
5555
// If we didn't find a good cut point (i.e. there isn't a good cut point anywhere)
5656
// then let's just take the whole thing it's probably one long word
57-
if (index === 0) {
57+
if (index === -2) {
5858
index = comment.length;
5959
}
6060
result.push(` * ${comment.substring(0, index)}`);

0 commit comments

Comments
 (0)