Merge pull request #10884 from bastianbeier/fix/email-templates

fix: Email templates to not contain white spaces / new lines
This commit is contained in:
Bastian Beier authored and GitHub committed 2025-01-16 23:01:13 +01:00
commit 090ab9f577
3 files changed
+13 -4

No files matched your search

@@ -0,0 +1,5 @@
Bugfix: Fix email templates white spaces & new lines
Email templates now contain no unwanted white spaces & new lines if .CallToAction is nil
https://github.com/owncloud/ocis/pull/10884
@@ -11,8 +11,10 @@
{{ .Greeting }}
<br><br>
{{ .MessageBody }}
{{if ne .CallToAction "" }}<br><br>
{{ .CallToAction }}{{end}}
{{- if .CallToAction }}
<br><br>
{{ .CallToAction }}
{{- end }}
</td>
</tr>
<tr>
@@ -1,9 +1,11 @@
{{ .Greeting }}
{{ .MessageBody }}
{{if ne .CallToAction "" }}
{{- if .CallToAction }}
{{ .CallToAction }}
{{end}}
{{- end }}
---
ownCloud - Store. Share. Work.