[MOD] Use <pre>, be a little more stringent on oID

This commit is contained in:
LDA 2024-07-23 18:36:30 +02:00
commit 9e34ffe665
4 changed files with 10 additions and 9 deletions

View file

@ -280,20 +280,16 @@ XEP393ToXMLString(XEP393Element *xepd)
Stream *writer;
char *ret = NULL;
size_t i;
if (!xepd)
{
return NULL;
}
root = XMLCreateTag("ROOT");
root = XMLCreateTag("pre");
ShoveXML(xepd, root);
writer = StrStreamWriter(&ret);
for (i = 0; i < ArraySize(root->children); i++)
{
XMLEncode(writer, ArrayGet(root->children, i));
}
XMLEncode(writer, root);
XMLFreeElement(root);
StreamFlush(writer);
StreamClose(writer);