mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
Fix FormField.Option.toXML() to use correct element
Fixes SMACK-589
This commit is contained in:
parent
5ead24e416
commit
0b6069d75f
1 changed files with 2 additions and 2 deletions
|
@ -313,7 +313,7 @@ public class FormField {
|
||||||
*/
|
*/
|
||||||
public static class Option {
|
public static class Option {
|
||||||
|
|
||||||
public static final String ELEMNT = "option";
|
public static final String ELEMENT = "option";
|
||||||
|
|
||||||
private final String value;
|
private final String value;
|
||||||
private String label;
|
private String label;
|
||||||
|
@ -352,7 +352,7 @@ public class FormField {
|
||||||
|
|
||||||
public XmlStringBuilder toXML() {
|
public XmlStringBuilder toXML() {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder();
|
XmlStringBuilder xml = new XmlStringBuilder();
|
||||||
xml.halfOpenElement(ELEMNT);
|
xml.halfOpenElement(ELEMENT);
|
||||||
// Add attribute
|
// Add attribute
|
||||||
xml.optAttribute("label", getLabel());
|
xml.optAttribute("label", getLabel());
|
||||||
xml.rightAngelBracket();
|
xml.rightAngelBracket();
|
||||||
|
|
Loading…
Reference in a new issue