Fix email editor for other email types

This commit is contained in:
Harvey Tindall
2021-04-22 19:16:41 +01:00
parent d772e43e44
commit 90a2c1f2e7
2 changed files with 15 additions and 17 deletions
+1 -2
View File
@@ -47,8 +47,7 @@ func templateEmail(content string, variables []string, conditionals []string, va
}
ifEnd = i - 1
if ifTrue {
b := templateEmail(content[ifStart:ifEnd+1], variables, conditionals, values)
out += b
out += templateEmail(content[ifStart:ifEnd+1], variables, conditionals, values)
ifTrue = false
}
} else if c == '}' {