~sircmpwn/aerc

templates: Use wrap instead of wrapText v1 PROPOSED

Nícolas F. R. A. Prado: 1
 templates: Use wrap instead of wrapText

 2 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/20810/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] templates: Use wrap instead of wrapText Export this patch

bf0f72a533d5 ("template: add exec and wrap") introduced wrap which
allowed to chain wrapText. It also changed the aerc-templates man page
to document wrap instead of wrapText. The templates weren't updated
then, so update now.
---

I also wonder if wrapText should be removed from the valid template commands.
That would intentionally break backward compatibility, but it feels weird to
have a command that is no longer documented still work.
 templates/forward_as_body | 2 +-
 templates/quoted_reply    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/forward_as_body b/templates/forward_as_body
index 745997113211..455d2baa3e25 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"}}:
{{wrapText .OriginalText 72}}
{{wrap .OriginalText 72}}
diff --git a/templates/quoted_reply b/templates/quoted_reply
index 1077e1cc4038..eeacb6df1842 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:
{{wrapText .OriginalText 72 | quote }}
{{wrap .OriginalText 72 | quote }}
-- 
2.30.1