llcppsigfetch:keep line break

This commit is contained in:
luoliwoshang
2024-09-23 17:16:16 +08:00
parent 074090a0aa
commit 81bd225ff7
2 changed files with 29 additions and 29 deletions

View File

@@ -259,7 +259,7 @@ func (ct *Converter) ParseComment(rawComment string) *ast.CommentGroup {
lines := strings.Split(rawComment, "\n")
commentGroup := &ast.CommentGroup{}
for _, line := range lines {
commentGroup.List = append(commentGroup.List, &ast.Comment{Text: line})
commentGroup.List = append(commentGroup.List, &ast.Comment{Text: line + "\n"})
}
return commentGroup
}