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
|
# 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",
|
||||||
|
|
Loading…
Reference in a new issue