Convert \n to <br/> in xhtml body

fix #2539
This commit is contained in:
Emmanuel Gil Peyrot
2014-06-08 05:35:36 +02:00
committed by Florent Le Coz
parent 2d5e2fdcf6
commit 3d9183557f
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -28,6 +28,7 @@ namespace Xmpp
#define IRC_FORMAT_REVERSE2_CHAR '\x16' // wat
#define IRC_FORMAT_ITALIC_CHAR '\x1D' // done
#define IRC_FORMAT_UNDERLINE_CHAR '\x1F' // done
#define IRC_FORMAT_NEWLINE_CHAR '\n' // done
static const char irc_format_char[] = {
IRC_FORMAT_BOLD_CHAR,
@@ -38,6 +39,7 @@ static const char irc_format_char[] = {
IRC_FORMAT_REVERSE2_CHAR,
IRC_FORMAT_ITALIC_CHAR,
IRC_FORMAT_UNDERLINE_CHAR,
IRC_FORMAT_NEWLINE_CHAR,
'\x00'
};