Skip to content

Commit 21a9f80

Browse files
committed
#72 Call moji.Squeeze() to remove redundant space characters
1 parent 0b16f77 commit 21a9f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfc3834/lib.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func Inquire(bf *sis.BeforeFact) sis.RisingUnderway {
8383
if recipients == 0 { return sis.RisingUnderway{} }
8484

8585
// Squeeze continuous "\n" in the message body
86-
bf.Payload = strings.Trim(strings.ReplaceAll(bf.Payload, "\n\n", "\n"), "\n")
86+
bf.Payload = strings.Trim(moji.Squeeze(bf.Payload, '\n'), "\n")
8787
bodyslices := strings.Split(bf.Payload, "\n")
8888
rfc822part := ""
8989

0 commit comments

Comments
 (0)