1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-18 10:02:05 +01:00

Merge pull request #318 from vanitasvitae/xhtml_fix

SMACK-868: Fix XHTMLText producing invalid XML
This commit is contained in:
Florian Schmaus 2019-05-06 22:56:01 +02:00 committed by GitHub
commit 7980e2cedb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;