Mercurial > pidgin
comparison libpurple/protocols/msn/msn-utils.c @ 15788:8cf610a18481
Fixed whitespace and variable naming issues with the patch I accepted in 66925c4a3abff28f8826399d55051c6c40ffbe42
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Mon, 12 Mar 2007 23:00:01 +0000 |
parents | a1564afbad84 |
children | 32c366eeeb99 |
comparison
equal
deleted
inserted
replaced
15787:a1564afbad84 | 15788:8cf610a18481 |
---|---|
172 char *msg; | 172 char *msg; |
173 char *fontface = NULL; | 173 char *fontface = NULL; |
174 char fonteffect[4]; | 174 char fonteffect[4]; |
175 char fontcolor[7]; | 175 char fontcolor[7]; |
176 | 176 |
177 gboolean haveBold = FALSE; | 177 gboolean has_bold = FALSE; |
178 gboolean haveItalic = FALSE; | 178 gboolean has_italic = FALSE; |
179 gboolean haveUnderline = FALSE; | 179 gboolean has_underline = FALSE; |
180 gboolean haveStrikethrough = FALSE; | 180 gboolean has_strikethrough = FALSE; |
181 | 181 |
182 g_return_if_fail(html != NULL); | 182 g_return_if_fail(html != NULL); |
183 g_return_if_fail(attributes != NULL); | 183 g_return_if_fail(attributes != NULL); |
184 g_return_if_fail(message != NULL); | 184 g_return_if_fail(message != NULL); |
185 | 185 |
200 msg[retcount++] = '\n'; | 200 msg[retcount++] = '\n'; |
201 c += 4; | 201 c += 4; |
202 } | 202 } |
203 else if (!g_ascii_strncasecmp(c + 1, "i>", 2)) | 203 else if (!g_ascii_strncasecmp(c + 1, "i>", 2)) |
204 { | 204 { |
205 if ( haveItalic == FALSE ) | 205 if (!has_italic) |
206 { | 206 { |
207 strcat(fonteffect, "I"); | 207 strcat(fonteffect, "I"); |
208 haveItalic = TRUE; | 208 has_italic = TRUE; |
209 } | 209 } |
210 c += 3; | 210 c += 3; |
211 } | 211 } |
212 else if (!g_ascii_strncasecmp(c + 1, "b>", 2)) | 212 else if (!g_ascii_strncasecmp(c + 1, "b>", 2)) |
213 { | 213 { |
214 if ( haveBold == FALSE ) | 214 if (!has_bold) |
215 { | 215 { |
216 strcat(fonteffect, "B"); | 216 strcat(fonteffect, "B"); |
217 haveBold = TRUE; | 217 has_bold = TRUE; |
218 } | 218 } |
219 c += 3; | 219 c += 3; |
220 } | 220 } |
221 else if (!g_ascii_strncasecmp(c + 1, "u>", 2)) | 221 else if (!g_ascii_strncasecmp(c + 1, "u>", 2)) |
222 { | 222 { |
223 if ( haveUnderline == FALSE ) | 223 if (!has_underline) |
224 { | 224 { |
225 strcat(fonteffect, "U"); | 225 strcat(fonteffect, "U"); |
226 haveUnderline = TRUE; | 226 has_underline = TRUE; |
227 } | 227 } |
228 c += 3; | 228 c += 3; |
229 } | 229 } |
230 else if (!g_ascii_strncasecmp(c + 1, "s>", 2)) | 230 else if (!g_ascii_strncasecmp(c + 1, "s>", 2)) |
231 { | 231 { |
232 if ( haveStrikethrough == FALSE ) | 232 if (!has_strikethrough) |
233 { | 233 { |
234 strcat(fonteffect, "S"); | 234 strcat(fonteffect, "S"); |
235 haveStrikethrough = TRUE; | 235 has_strikethrough = TRUE; |
236 } | 236 } |
237 c += 3; | 237 c += 3; |
238 } | 238 } |
239 else if (!g_ascii_strncasecmp(c + 1, "a href=\"", 8)) | 239 else if (!g_ascii_strncasecmp(c + 1, "a href=\"", 8)) |
240 { | 240 { |