summaryrefslogtreecommitdiff
path: root/postgresqleu/digisign
diff options
context:
space:
mode:
authorMagnus Hagander2024-06-25 10:06:27 +0000
committerMagnus Hagander2024-06-25 10:06:27 +0000
commit470fbba78f7ad65c63eab5fa956032592d5a467a (patch)
treecd5cca54995f70ac7600f67669fbf919871b7323 /postgresqleu/digisign
parentd2a220a54b4567f454fafbea174a8f3a69cfbe31 (diff)
Replace newline with <br/> in signwell messages
When attaching a message to a contract, it looksl ike Signwell accepts html (the format isn't really documented), so this is a way to make the message a lot nicer.
Diffstat (limited to 'postgresqleu/digisign')
-rw-r--r--postgresqleu/digisign/implementations/signwell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/digisign/implementations/signwell.py b/postgresqleu/digisign/implementations/signwell.py
index e5d30f77..877340e0 100644
--- a/postgresqleu/digisign/implementations/signwell.py
+++ b/postgresqleu/digisign/implementations/signwell.py
@@ -102,7 +102,7 @@ class Signwell(BaseProvider):
],
"name": subject,
"subject": subject,
- "message": message,
+ "message": message.replace("\n", "<br/>"),
"recipients": [
{
"id": "1",
@@ -113,7 +113,7 @@ class Signwell(BaseProvider):
"id": "2",
"name": sender_name,
"email": sender_email,
- "message": message_to_sender or message,
+ "message": message_to_sender.replace("\n", "<br/>") or message.replace("\n", "<br/>"),
},
],
"apply_signing_order": True,