Skip to content

The Open Source DocuSign Alternative.

fix: persist newline in emails

Ephraim Atta-Duncan22f940093256
diff --git a/packages/email/templates/document-invite.tsx b/packages/email/templates/document-invite.tsx
index e0d521c28..661a2fd5f 100644
--- a/packages/email/templates/document-invite.tsx
+++ b/packages/email/templates/document-invite.tsx
@@ -81,9 +81,11 @@ export const DocumentInviteEmailTemplate = ({
</Text>
<Text className="mt-2 text-base text-slate-400">
- {customBody
- ? customBody
- : `${inviterName} has invited you to sign the document "${documentName}".`}
+ {customBody ? (
+ <pre className="font-sans text-base text-slate-400">{customBody}</pre>
+ ) : (
+ `${inviterName} has invited you to sign the document "${documentName}".`
+ )}
</Text>
</Section>
</Container>