Fixed extra space in XML writing.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1808 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-01-17 18:27:49 +00:00 committed by mtucker
parent 8322f022cc
commit 83016425cf
1 changed files with 5 additions and 5 deletions

View File

@ -195,18 +195,18 @@ public class Presence extends Packet {
public String toXML() {
StringBuffer buf = new StringBuffer();
buf.append("<presence ");
buf.append("<presence");
if (getPacketID() != null) {
buf.append("id=\"").append(getPacketID()).append("\" ");
buf.append(" id=\"").append(getPacketID()).append("\"");
}
if (getTo() != null) {
buf.append("to=\"").append(getTo()).append("\" ");
buf.append(" to=\"").append(getTo()).append("\"");
}
if (getFrom() != null) {
buf.append("from=\"").append(getFrom()).append("\" ");
buf.append(" from=\"").append(getFrom()).append("\"");
}
if (type != Type.AVAILABLE) {
buf.append("type=\"").append(type).append("\"");
buf.append(" type=\"").append(type).append("\"");
}
buf.append(">");
if (status != null) {