Skip to content

Commit fe71ebc

Browse files
committed
- Review points
1 parent 42d5d7d commit fe71ebc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/api-extractor/src/generators/DtsRollupGenerator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,10 @@ export class DtsRollupGenerator {
449449
}
450450
}
451451

452-
if (/^\s*$/.test(modification.suffix) && /^\s*$/.test(modification.prefix)) {
453-
modification.suffix = modification.prefix = '';
452+
if (modification.suffix.trim().length === 0 && modification.prefix.trim().length === 0) {
453+
// In case of blank prefix and suffix, remove indentation to avoid blank lines in place of removed members
454+
modification.suffix = '';
455+
modification.prefix = '';
454456
}
455457

456458
trimmed = true;

0 commit comments

Comments
 (0)