Skip to content

Commit

Permalink
Removes line breaks from ${message} itself
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Apr 19, 2019
1 parent dd130f8 commit 3d95a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
},
"gitlens.hovers.detailsMarkdownFormat": {
"type": "string",
"default": "[${avatar}  __${author}__](mailto:${email}), ${ago}   _(${date})_ ${message}\n\n${commands}",
"default": "[${avatar}  __${author}__](mailto:${email}), ${ago}   _(${date})_ \n\n${message}\n\n${commands}",
"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",
"scope": "window"
},
Expand Down
2 changes: 1 addition & 1 deletion src/git/formatters/commitFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class CommitFormatter extends Formatter<GitCommit, CommitFormatOptions> {
}
}

return `\n\n> ${message
return `\n> ${message
// Escape markdown
.replace(escapeMarkdownRegex, '\\$&')
// Escape markdown header (since the above regex won't match it)
Expand Down

0 comments on commit 3d95a93

Please sign in to comment.