Skip to content

Commit 3d95a93

Browse files
committed
Removes line breaks from ${message} itself
1 parent dd130f8 commit 3d95a93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@
565565
},
566566
"gitlens.hovers.detailsMarkdownFormat": {
567567
"type": "string",
568-
"default": "[${avatar}  __${author}__](mailto:${email}), ${ago}   _(${date})_ ${message}\n\n${commands}",
568+
"default": "[${avatar}  __${author}__](mailto:${email}), ${ago}   _(${date})_ \n\n${message}\n\n${commands}",
569569
"markdownDescription": "Specifies the format (in markdown) of the _commit details_ hover. See the [GitLens docs](https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting) for advanced formatting\n- Available tokens\n - `${id}` — commit id\n - `${author}` — commit author\n - `${email}` — commit author e-mail\n - `${message}` — commit message\n - `${ago}` — relative commit date (e.g. 1 day ago)\n - `${date}` — formatted commit date (format specified by `#gitlens.defaultDateFormat#`)\n - `${agoOrDate}` — commit date specified by `#gitlens.defaultDateStyle#`\n - `${authorAgo}` — commit author, relative commit date\n - `${authorAgoOrDate}` — commit author, commit date specified by `#gitlens.defaultDateStyle#`\n - `${avatar}` — commit author avatar\n - `${commands}` — a set of commit commands",
570570
"scope": "window"
571571
},

src/git/formatters/commitFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class CommitFormatter extends Formatter<GitCommit, CommitFormatOptions> {
213213
}
214214
}
215215

216-
return `\n\n> ${message
216+
return `\n> ${message
217217
// Escape markdown
218218
.replace(escapeMarkdownRegex, '\\$&')
219219
// Escape markdown header (since the above regex won't match it)

0 commit comments

Comments
 (0)