Skip to content

Commit 7f1a70d

Browse files
committed
Only insert a single line break. Fixes YousefED#74
1 parent 06b7a3a commit 7f1a70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript-json-schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class JsonSchemaGenerator {
120120
if (!comments || !comments.length) {
121121
return;
122122
}
123-
let joined = comments.map(comment => comment.text.trim()).join("\n");
123+
let joined = comments.map(comment => comment.kind === "lineBreak" ? comment.text : comment.text.trim()).join("");
124124
joined = this.copyDescription(joined, definition);
125125
this.copyValidationKeywords(joined, definition, otherAnnotations);
126126
}

0 commit comments

Comments
 (0)