1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

SMACK-868: Fix XHTMLText producing invalid XML

This commit is contained in:
Eng ChongMeng 2019-05-06 00:38:22 +02:00 committed by Paul Schaub
parent 11775ed6b0
commit dd903bec95
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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;