aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2021-03-07 15:17:08 +0100
committerReto Brunner <reto@labrat.space>2021-03-07 15:17:08 +0100
commita19c1fb65b579f1932dfac70188720721170507f (patch)
tree0d7d0f72a6ec192abbdd3b572b4cc578f195e726
parent3df88f70408a2946862187056a80cfccc655e5cc (diff)
downloadaerc-a19c1fb65b579f1932dfac70188720721170507f.tar.gz
templates: fixup error in template modification
The change of WrapText --> Wrap left the order of the arguments unchanged, which is wrong.
-rw-r--r--templates/forward_as_body2
-rw-r--r--templates/quoted_reply2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/forward_as_body b/templates/forward_as_body
index 455d2baa..17397c62 100644
--- a/templates/forward_as_body
+++ b/templates/forward_as_body
@@ -1,3 +1,3 @@
Forwarded message from {{(index .OriginalFrom 0).Name}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}:
-{{wrap .OriginalText 72}}
+{{wrap 72 .OriginalText }}
diff --git a/templates/quoted_reply b/templates/quoted_reply
index eeacb6df..d74415a2 100644
--- a/templates/quoted_reply
+++ b/templates/quoted_reply
@@ -1,3 +1,3 @@
On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{(index .OriginalFrom 0).Name}} wrote:
-{{wrap .OriginalText 72 | quote }}
+{{wrap 72 .OrinalText | quote }}