diff options
-rw-r--r-- | widgets/compose.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index b74e1537..dc4719a6 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -542,6 +542,10 @@ func (c *Composer) AddSignature() { } else { signature = c.readSignatureFromFile() } + signature = bytes.TrimSpace(signature) + if len(signature) == 0 { + return + } signature = ensureSignatureDelimiter(signature) c.AppendContents(bytes.NewReader(signature)) } |