File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,17 @@ steps:
135135 writerOpts: {
136136 finalizeContext: (context) => {
137137 const prefix = ' > '
138+ context.noteGroups.forEach(group => {
139+ group.notes.forEach(note => {
140+ if (note.text) {
141+ note.text = note.text.split('\n\n').map(paragraph => paragraph.split('\n').join(' ')).join('\n\n')
142+ }
143+ })
144+ })
138145 context.commitGroups.forEach(group => {
139146 group.commits.forEach(commit => {
140147 if (commit.body) {
141- commit.body = prefix + commit.body.split('\n').join('\n' + prefix)
148+ commit.body = prefix + commit.body.split('\n\n ').map(paragraph => paragraph.split('\n'). join(' ')).join('\n' + prefix + '\n' + prefix)
142149 }
143150 })
144151 group.commits = group.commits.filter(commit => !(commit.type == 'Miscellaneous Chores' && commit.scope == 'release'))
You can’t perform that action at this time.
0 commit comments