Bladeren bron

Removes line breaks from ${message} itself

main
Eric Amodio 5 jaren geleden
bovenliggende
commit
3d95a93054
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      package.json
  2. +1
    -1
      src/git/formatters/commitFormatter.ts

+ 1
- 1
package.json Bestand weergeven

@ -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"
},

+ 1
- 1
src/git/formatters/commitFormatter.ts Bestand weergeven

@ -213,7 +213,7 @@ export class CommitFormatter extends Formatter {
}
}
return `\n\n> ${message
return `\n> ${message
// Escape markdown
.replace(escapeMarkdownRegex, '\\$&')
// Escape markdown header (since the above regex won't match it)

Laden…
Annuleren
Opslaan