Harmonize newlines.

This commit is contained in:
Martin Dosch
2024-04-05 11:57:09 +02:00
parent 0324b31f56
commit d7aee6b636
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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)