integrations/perforce: Fix formatting of multiple paragraphs.

This fixes multiple paragraphs in a commit message escaping
from the block quote by using triple-backquote quoting instead
of '>' which only applies to one paragraph.
This commit is contained in:
Shane Kearns 2017-06-19 12:38:49 +01:00 committed by showell
parent 1fb8eb823a
commit dd0eca3e58
1 changed files with 10 additions and 5 deletions

View File

@ -76,11 +76,16 @@ if destination is None:
# Don't forward the notice anywhere
sys.exit(0)
message = "**{0}** committed revision @{1} to `{2}`.\n\n> {3}".format(
metadata["user"],
metadata["change"],
changeroot,
metadata["desc"]) # type: str
message = """**{user}** committed revision @{change} to `{path}`.
```quote
{desc}
```
""".format(
user=metadata["user"],
change=metadata["change"],
path=changeroot,
desc=metadata["desc"]) # type: str
message_data = {
"type": "stream",