Commit Graph
12 Commits
Author SHA1 Message Date
Florent Le Coz f3b3d937ae Use unique_ptr to store the XmlNode’s children
Also fix some constness things
2015-09-01 14:47:57 +02:00
Florent Le Coz e8f22efe34 XmlNodes are now always closed
Remove the close() method and closed attribute. Remove all the calls to
close().  (Save one bool per XmlNode, yay, and save a few ifs and some
useless function calls. At best it should be unnoticeably faster and lighter
and save a few keystrokes in the future)
2015-09-01 04:42:12 +02:00
Florent Le Coz 720e31a511 Fix a few issues reported by static analyzers 2014-12-17 13:37:57 +01:00
Emmanuel Gil Peyrot 3d9183557f Convert \n to <br/> in xhtml body
fix #2539
2014-06-08 05:35:36 +02:00
Florent Le Coz f6e6b8905b Use C++14 string_literals 2014-04-29 21:50:13 +02:00
Florent Le Coz c6059e5a21 Upgrade to C++14 2014-04-28 18:46:25 +02:00
Florent Le Coz 114007f10d Actually do the last commit, but completely this time 2014-04-18 10:46:25 +02:00
Florent Le Coz bd7936bdfe No more missing text when converting IRC colors to xhtml-im
fix #2496
2014-04-17 20:37:46 +02:00
Florent Le Coz e6f20d3c0f 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.
2013-11-28 01:18:26 +01:00
Florent Le Coz fba01f4646 Remove incomplete implementation of remove_irc_colors 2013-11-27 00:37:23 +01:00
Florent Le Coz abce2fc92e Do not crash on special chars in the content of message
That’s ugly, and we need to sanitize everything properly, and also handle
these special messages.
2013-11-13 01:36:30 +01:00
Florent Le Coz 8acd7a02ae Aaaand, I forgot to add files 2013-11-09 23:20:12 +01:00