Skip to content

Commit

Permalink
Add more newlines in mail content
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed Jan 6, 2025
1 parent 4e20ee8 commit 5a27cbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/dito/app/resources/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,8 @@ Direkte Veraktung:
- Nutzen Sie, falls vorhanden, die direkte Veraktungsfunktion in Outlook.
Mit freundlichen Grüßen
*Diese E-Mail wurde automatisch erstellt.*
Expand Down
6 changes: 3 additions & 3 deletions packages/dito/app/routes/vorpruefung.ergebnis/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function getRelevantAnswers(
function buildEmailBody(answers: PreCheckAnswers, negativeReasoning?: string) {
const resultContent = resolveResultContent(answers, getResult(answers));

let resultText: string = resultContent.title + "\n\n";
let resultText: string = resultContent.title + "\n\n\n";

resultContent.reasoningList
.filter((reasoning) => reasoning.reasons.length !== 0)
Expand All @@ -114,14 +114,14 @@ function buildEmailBody(answers: PreCheckAnswers, negativeReasoning?: string) {
.forEach((reason) => {
resultText += "- " + reason.text + "\n";
});
resultText += "\n";
resultText += "\n\n";
});

resultText += negativeReasoning
? preCheck.result.form.reasonLabel + ":\n\n" + negativeReasoning + "\n\n"
: "";

return `${emailTemplate.bodyBefore}\n\n${resultText}${emailTemplate.bodyAfter}`;
return `${emailTemplate.bodyBefore}\n${resultText}\n\n\n${emailTemplate.bodyAfter}`;
}

export async function action({ request }: ActionFunctionArgs) {
Expand Down

0 comments on commit 5a27cbc

Please sign in to comment.