From dd903bec95b3ab24b12ab8013a64cdbddfe4a312 Mon Sep 17 00:00:00 2001 From: Eng ChongMeng Date: Mon, 6 May 2019 00:38:22 +0200 Subject: [PATCH] SMACK-868: Fix XHTMLText producing invalid XML --- .../main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java index b08507ad0..2ef66949f 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java @@ -105,7 +105,7 @@ public class XHTMLText { private XHTMLText appendOpenBodyTag(String style, String lang) { text.halfOpenElement(Message.BODY); text.xmlnsAttribute(NAMESPACE); - text.optElement(STYLE, style); + text.optAttribute(STYLE, style); text.xmllangAttribute(lang); text.rightAngleBracket(); return this;