mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-23 04:23:45 -07:00
Harmonize newlines.
This commit is contained in:
@@ -1296,7 +1296,7 @@ func (c *Client) SendPresence(presence Presence) (n int, err error) {
|
||||
buf = buf + fmt.Sprintf("<status>%s</status>", xmlEscape(presence.Status))
|
||||
}
|
||||
|
||||
stanza := fmt.Sprintf(buf + "</presence>")
|
||||
stanza := fmt.Sprintf(buf + "</presence>\n")
|
||||
if c.LimitMaxBytes != 0 && len(stanza) > c.LimitMaxBytes {
|
||||
return 0, fmt.Errorf("stanza size (%v bytes) exceeds server limit (%v bytes)",
|
||||
len(stanza), c.LimitMaxBytes)
|
||||
|
||||
Reference in New Issue
Block a user