Mercurial > pidgin.yaz
comparison libpurple/protocols/myspace/message.c @ 18882:b69623379f9a
In lists, only insert a | between elements, no longer at the end also.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Tue, 07 Aug 2007 02:54:46 +0000 |
parents | f41db253c1af |
children | a3a5b2e9079a |
comparison
equal
deleted
inserted
replaced
18881:3ec39ff6b407 | 18882:b69623379f9a |
---|---|
756 | 756 |
757 gs = g_string_new(""); | 757 gs = g_string_new(""); |
758 | 758 |
759 for (gl = (GList *)elem->data; gl != NULL; gl = g_list_next(gl)) | 759 for (gl = (GList *)elem->data; gl != NULL; gl = g_list_next(gl)) |
760 { | 760 { |
761 g_string_append_printf(gs, "%s|", (gchar*)(gl->data)); | 761 g_string_append_printf(gs, "%s", (gchar*)(gl->data)); |
762 | |
763 /* All but last element is separated by a bar. */ | |
764 if (g_list_next(gl)) | |
765 g_string_append(gs, "|"); | |
762 } | 766 } |
763 | 767 |
764 return gs->str; | 768 return gs->str; |
765 } | 769 } |
766 | 770 |