core/xmlhandlers.lua

changeset 844
503ca8da1000
parent 838
1035846d6273
child 894
2c0b9e3c11c3
equal deleted inserted replaced
843:1d2dab41b0db 844:503ca8da1000
120 else 120 else
121 cb_error(session, "parse-error", "unexpected-element-close", name); 121 cb_error(session, "parse-error", "unexpected-element-close", name);
122 end 122 end
123 end 123 end
124 if stanza then 124 if stanza then
125 if stanza and #chardata > 0 then 125 if #chardata > 0 then
126 -- We have some character data in the buffer 126 -- We have some character data in the buffer
127 stanza:text(t_concat(chardata)); 127 stanza:text(t_concat(chardata));
128 chardata = {}; 128 chardata = {};
129 end 129 end
130 -- Complete stanza 130 -- Complete stanza

mercurial