diff --git a/tokio-xmpp/src/xmpp_codec.rs b/tokio-xmpp/src/xmpp_codec.rs index f6d99bff..4cb1f733 100644 --- a/tokio-xmpp/src/xmpp_codec.rs +++ b/tokio-xmpp/src/xmpp_codec.rs @@ -175,7 +175,7 @@ impl Encoder for XMPPCodec { self.ns = Some(value); } } - write!(buf, ">\n").map_err(to_io_err)?; + write!(buf, ">").map_err(to_io_err)?; write!(dst, "{}", buf)?; let utf8 = std::str::from_utf8(dst)?;