Explorar el Código

Removes line breaks from ${message} itself

main
Eric Amodio hace 5 años
padre
commit
3d95a93054
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      package.json
  2. +1
    -1
      src/git/formatters/commitFormatter.ts

+ 1
- 1
package.json Ver fichero

@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar