Mercurial > pidgin.yaz
diff console/plugins/gnthistory.c @ 14787:584da235633e
[gaim-migrate @ 17551]
Do not print an extra newline for HTML logs.
(20:17:27) seanegan: sadrul: are you checking the flags from gaim_log_read?
(20:18:18) elb: sadrul: for HTML logs, it should strip 0x0a and turn <br> into 0x0a
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 20 Oct 2006 00:19:41 +0000 |
parents | 9de2963a8184 |
children | c7651586e27b |
line wrap: on
line diff
--- a/console/plugins/gnthistory.c Thu Oct 19 22:17:30 2006 +0000 +++ b/console/plugins/gnthistory.c Fri Oct 20 00:19:41 2006 +0000 @@ -45,7 +45,7 @@ GaimConversationType convtype; GList *logs = NULL; const char *alias = name; - guint flags; + GaimLogReadFlags flags; char *history; char *header; GaimMessageFlags mflag; @@ -119,7 +119,8 @@ gaim_conversation_write(c, "", header, mflag, time(NULL)); g_free(header); - g_strchomp(history); + if (flags & GAIM_LOG_READ_NO_NEWLINE) + gaim_str_strip_char(history, '\n'); gaim_conversation_write(c, "", history, mflag, time(NULL)); g_free(history);