diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-11-22 21:00:32 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-11-28 01:18:26 +0100 |
commit | e6f20d3c0fd4ba8696a4410a366741c9b9f3562d (patch) | |
tree | 0b34e42163fcb2b869e74fa11c4fb18cf5226b89 /src/xmpp/xmpp_stanza.hpp | |
parent | 31e18e49b699f606a8aeb1f529642a004781e704 (diff) | |
download | biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.tar.gz biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.tar.bz2 biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.tar.xz biboumi-e6f20d3c0fd4ba8696a4410a366741c9b9f3562d.zip |
Implement IRC format to xhtml-im conversion
The generated XML is very verbose because each IRC formatting tag makes us
close a <span/> element and reopen it with the new style applied. However,
this works quite well and is easy to implement.
Diffstat (limited to 'src/xmpp/xmpp_stanza.hpp')
-rw-r--r-- | src/xmpp/xmpp_stanza.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xmpp/xmpp_stanza.hpp b/src/xmpp/xmpp_stanza.hpp index ca21ab4..87a80e9 100644 --- a/src/xmpp/xmpp_stanza.hpp +++ b/src/xmpp/xmpp_stanza.hpp @@ -21,9 +21,9 @@ class AttributeNotFound: public std::exception nullptr) * - zero, one or more children XML nodes * - A name - * - attributes - * - inner data (inside the node) - * - tail data (just after the node) + * - A map of attributes + * - inner data (text inside the node) + * - tail data (text just after the node) */ class XmlNode { @@ -32,8 +32,8 @@ public: explicit XmlNode(const std::string& name); XmlNode(XmlNode&& node): name(std::move(node.name)), - parent(std::move(node.parent)), - closed(std::move(node.closed)), + parent(node.parent), + closed(node.closed), attributes(std::move(node.attributes)), children(std::move(node.children)), inner(std::move(node.inner)), |