mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:35:10 +00:00
[MOD] Mess a bit with rich replies, add XEPS-TBD
This should be a nice list of future XEPs to be implemented, so that I can keep track of these without having to keep all of these in my head.
This commit is contained in:
parent
ae740878c8
commit
628a55fbca
6 changed files with 127 additions and 18 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include <string.h>
|
||||
|
||||
XMLElement *
|
||||
XMLDecode(Stream *stream, bool autofree)
|
||||
XMLCDecode(Stream *stream, bool autofree, bool html)
|
||||
{
|
||||
#define push(x) ArrayAdd(stack, x)
|
||||
#define pop(x) ArrayDelete(stack, ArraySize(stack) - 1)
|
||||
|
|
@ -45,7 +45,12 @@ XMLDecode(Stream *stream, bool autofree)
|
|||
* going to be our top of the stack */
|
||||
ret = top;
|
||||
}
|
||||
push(top);
|
||||
|
||||
/* HACK!!! */
|
||||
if (!StrEquals(event->element, "br") || !html)
|
||||
{
|
||||
push(top);
|
||||
}
|
||||
break;
|
||||
case XML_LEXER_ELEM:
|
||||
/* Create a new element that will populated. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue