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:
parent
b475258446
commit
680f453834
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue