Mercurial > pidgin.yaz
comparison libpurple/util.c @ 17705:a7a8e4245b33
Remove needless string duplication.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 04 Jun 2007 05:52:11 +0000 |
parents | 3d035cdd103b |
children | 6608a7ab0fd9 |
comparison
equal
deleted
inserted
replaced
17703:0f4a562b38d1 | 17705:a7a8e4245b33 |
---|---|
1592 g_string_append_printf(xhtml, "</%s>", pt->dest_tag); | 1592 g_string_append_printf(xhtml, "</%s>", pt->dest_tag); |
1593 tag = tag->next; | 1593 tag = tag->next; |
1594 } | 1594 } |
1595 g_list_free(tags); | 1595 g_list_free(tags); |
1596 if(xhtml_out) | 1596 if(xhtml_out) |
1597 *xhtml_out = g_strdup(xhtml->str); | 1597 *xhtml_out = g_string_free(xhtml, FALSE); |
1598 else | |
1599 g_string_free(xhtml, TRUE); | |
1598 if(plain_out) | 1600 if(plain_out) |
1599 *plain_out = g_strdup(plain->str); | 1601 *plain_out = g_string_free(plain, FALSE); |
1600 g_string_free(xhtml, TRUE); | 1602 else |
1601 g_string_free(plain, TRUE); | 1603 g_string_free(plain, TRUE); |
1602 } | 1604 } |
1603 | 1605 |
1604 /* The following are probably reasonable changes: | 1606 /* The following are probably reasonable changes: |
1605 * - \n should be converted to a normal space | 1607 * - \n should be converted to a normal space |
1606 * - in addition to <br>, <p> and <div> etc. should also be converted into \n | 1608 * - in addition to <br>, <p> and <div> etc. should also be converted into \n |