Browse Source

Removes line breaks from ${message} itself

main
Eric Amodio 6 years ago
parent
commit
3d95a93054
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      package.json
  2. +1
    -1
      src/git/formatters/commitFormatter.ts

+ 1
- 1
package.json View File

@ -565,7 +565,7 @@
},
"gitlens.hovers.detailsMarkdownFormat": {
"type": "string",
"default": "[Misplaced &{author}__](mailto:email),{ago}   _(Missing superscript or subscript argument{message}\n\n${commands}",
"default": "[Misplaced &{author}__](mailto:email),{ago}   _(${date})_ \n\nmessage\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 - `Misplaced &{author}` — commit author\n - `Misplaced &{message}` — commit message\n - `Misplaced &{date}` — formatted commit date (format specified by `#gitlens.defaultDateFormat#`)\n - `Misplaced &{authorAgo}` — commit author, relative commit date\n - `Misplaced &{avatar}` — commit author avatar\n - `${commands}` — a set of commit commands",
"scope": "window"
},

+ 1
- 1
src/git/formatters/commitFormatter.ts View File

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

||||||
x
 
000:0
Loading…
Cancel
Save