Skip to content

Commit f6b1a77

Browse files
Copilotalexr00
andcommitted
Fix plain text joining to trim whitespace
Use appendWithSpace with trimmed text to avoid double spaces when joining lines with leading whitespace. Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent b6cf72f commit f6b1a77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github/folderRepositoryManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3356,7 +3356,7 @@ function unwrapCommitMessageBody(body: string): string {
33563356
}
33573357

33583358
// Join this line with a space
3359-
joinedLine += ' ' + nextLine;
3359+
joinedLine = appendWithSpace(joinedLine, nextLine.trim());
33603360
i++;
33613361
}
33623362

0 commit comments

Comments
 (0)