Mercurial > pidgin
changeset 18360:d8f783ed28d3
Make the Trillian logger set flags properly, and use <br> instead of \n for
newlines. Also, add a comment about \r characters. We should deal with
those at some point.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 30 Jun 2007 21:57:01 +0000 |
parents | d1e7c8015308 |
children | 95a37af927ff |
files | libpurple/plugins/log_reader.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c Fri Jun 29 18:56:56 2007 +0000 +++ b/libpurple/plugins/log_reader.c Sat Jun 30 21:57:01 2007 +0000 @@ -1422,6 +1422,7 @@ char *c; const char *line; + *flags = PURPLE_LOG_READ_NO_NEWLINE; g_return_val_if_fail(log != NULL, g_strdup("")); data = log->logger_data; @@ -1676,10 +1677,14 @@ if (footer) g_string_append(formatted, footer); - g_string_append_c(formatted, '\n'); + g_string_append(formatted, "<br>"); } g_free(read); + + /* XXX: TODO: What can we do about removing \r characters? + * XXX: TODO: and will that allow us to avoid this + * XXX: TODO: g_strchomp(), or is that unrelated? */ /* XXX: TODO: Avoid this g_strchomp() */ return g_strchomp(g_string_free(formatted, FALSE)); }