mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
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:
parent
8322f022cc
commit
83016425cf
1 changed files with 5 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue