Procházet zdrojové kódy

Removes line breaks from ${message} itself

main
Eric Amodio před 5 roky
rodič
revize
3d95a93054
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +1
    -1
      package.json
  2. +1
    -1
      src/git/formatters/commitFormatter.ts

+ 1
- 1
package.json Zobrazit soubor

@ -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 Zobrazit soubor

@ -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)

Načítá se…
Zrušit
Uložit