comparison pidgin/gtkimhtml.c @ 19589:d24b19e3db5a

Patch from Ankit Singla to preserve newlines. Fixes #2858
author Sean Egan <seanegan@gmail.com>
date Sun, 02 Sep 2007 23:35:53 +0000
parents b99a158ea85e
children 2f7b3564bb7e
comparison
equal deleted inserted replaced
19588:7a5c4381e4dd 19589:d24b19e3db5a
4888 } else if (c == '&') { 4888 } else if (c == '&') {
4889 str = g_string_append(str, "&amp;"); 4889 str = g_string_append(str, "&amp;");
4890 } else if (c == '"') { 4890 } else if (c == '"') {
4891 str = g_string_append(str, "&quot;"); 4891 str = g_string_append(str, "&quot;");
4892 } else if (c == '\n') { 4892 } else if (c == '\n') {
4893 str = g_string_append(str, "<br>"); 4893 str = g_string_append(str, "<br>\n");
4894 } else { 4894 } else {
4895 str = g_string_append_unichar(str, c); 4895 str = g_string_append_unichar(str, c);
4896 } 4896 }
4897 4897
4898 tags = g_slist_reverse(tags); 4898 tags = g_slist_reverse(tags);