fix(email): preserve word wrap and line breaks in email body (#2139) (#2159)

This commit is contained in:
Tanushree Ahir
2025-11-14 09:42:36 +05:30
committed by GitHub
parent 56526f9448
commit 5811716d12
2 changed files with 37 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import { RECIPIENT_ROLES_DESCRIPTION } from '@documenso/lib/constants/recipient-
import { Body, Container, Head, Hr, Html, Img, Link, Preview, Section, Text } from '../components';
import { useBranding } from '../providers/branding';
import { TemplateCustomMessageBody } from '../template-components/template-custom-message-body';
import type { TemplateDocumentInviteProps } from '../template-components/template-document-invite';
import { TemplateDocumentInvite } from '../template-components/template-document-invite';
import { TemplateFooter } from '../template-components/template-footer';
@ -105,7 +106,7 @@ export const DocumentInviteEmailTemplate = ({
<Text className="mt-2 text-base text-slate-400">
{customBody ? (
<pre className="font-sans text-base text-slate-400">{customBody}</pre>
<TemplateCustomMessageBody text={customBody} />
) : (
<Trans>
{inviterName} has invited you to {action} the document "{documentName}".