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 b475258446
commit 680f453834

View file

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