Revision 8fd51b26e00adf83c2b8a53c556b308efa1c6c51
evands at pidgin.im
evands at pidgin.im
Tue Mar 13 06:45:40 EDT 2007
o -----------------------------------------------------------------
| Revision: 8fd51b26e00adf83c2b8a53c556b308efa1c6c51
| Ancestor: 66925c4a3abff28f8826399d55051c6c40ffbe42
| Author: evands at pidgin.im
| Date: 2007-03-12T23:00:01
| Branch: im.pidgin.pidgin
|
| Modified files:
| libpurple/protocols/msn/msn-utils.c
|
| ChangeLog:
|
| Fixed whitespace and variable naming issues with the patch I accepted in 66925c4a3abff28f8826399d55051c6c40ffbe42
|
| ============================================================
| --- libpurple/protocols/msn/msn-utils.c 577ec40e49f6e69420b2a10fb1b50339d74e0792
| +++ libpurple/protocols/msn/msn-utils.c 817c70476a43419c5865bc63cca520c28e80cb7b
| @@ -174,10 +174,10 @@ msn_import_html(const char *html, char *
| char fonteffect[4];
| char fontcolor[7];
|
| - gboolean haveBold = FALSE;
| - gboolean haveItalic = FALSE;
| - gboolean haveUnderline = FALSE;
| - gboolean haveStrikethrough = FALSE;
| + gboolean has_bold = FALSE;
| + gboolean has_italic = FALSE;
| + gboolean has_underline = FALSE;
| + gboolean has_strikethrough = FALSE;
|
| g_return_if_fail(html != NULL);
| g_return_if_fail(attributes != NULL);
| @@ -202,37 +202,37 @@ msn_import_html(const char *html, char *
| }
| else if (!g_ascii_strncasecmp(c + 1, "i>", 2))
| {
| - if ( haveItalic == FALSE )
| + if (!has_italic)
| {
| strcat(fonteffect, "I");
| - haveItalic = TRUE;
| + has_italic = TRUE;
| }
| c += 3;
| }
| else if (!g_ascii_strncasecmp(c + 1, "b>", 2))
| {
| - if ( haveBold == FALSE )
| + if (!has_bold)
| {
| strcat(fonteffect, "B");
| - haveBold = TRUE;
| + has_bold = TRUE;
| }
| c += 3;
| }
| else if (!g_ascii_strncasecmp(c + 1, "u>", 2))
| {
| - if ( haveUnderline == FALSE )
| + if (!has_underline)
| {
| strcat(fonteffect, "U");
| - haveUnderline = TRUE;
| + has_underline = TRUE;
| }
| c += 3;
| }
| else if (!g_ascii_strncasecmp(c + 1, "s>", 2))
| {
| - if ( haveStrikethrough == FALSE )
| + if (!has_strikethrough)
| {
| strcat(fonteffect, "S");
| - haveStrikethrough = TRUE;
| + has_strikethrough = TRUE;
| }
| c += 3;
| }
To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from 8fd51b26e00adf83c2b8a53c556b308efa1c6c51
More information about the Commits
mailing list