libpurple/protocols/gg/html.c

branch
soc.2013.gobjectification.plugins
changeset 37065
3546d731987e
parent 35360
29d788c72350
child 40358
e6fe6fc1f516
--- a/libpurple/protocols/gg/html.c	Tue Feb 04 04:56:36 2014 +0530
+++ b/libpurple/protocols/gg/html.c	Tue Feb 04 14:30:03 2014 +0530
@@ -73,8 +73,7 @@
 		return attribs;
 
 	g_regex_match(global_data.re_html_attr, attribs_str, 0, &match);
-	while (g_match_info_matches(match))
-	{
+	while (g_match_info_matches(match)) {
 		g_hash_table_insert(attribs,
 			g_match_info_fetch(match, 1),
 			g_match_info_fetch(match, 2));
@@ -96,8 +95,7 @@
 		return attribs;
 
 	g_regex_match(global_data.re_css_attr, attribs_str, 0, &match);
-	while (g_match_info_matches(match))
-	{
+	while (g_match_info_matches(match)) {
 		g_hash_table_insert(attribs,
 			g_match_info_fetch(match, 1),
 			g_match_info_fetch(match, 2));
@@ -115,8 +113,7 @@
 	int color = -1;
 
 	g_regex_match(global_data.re_color_hex, str, 0, &match);
-	if (g_match_info_matches(match))
-	{
+	if (g_match_info_matches(match)) {
 		if (sscanf(str + 1, "%x", &color) != 1)
 			color = -1;
 	}
@@ -125,8 +122,7 @@
 		return color;
 
 	g_regex_match(global_data.re_color_rgb, str, 0, &match);
-	if (g_match_info_matches(match))
-	{
+	if (g_match_info_matches(match)) {
 		int r = -1, g = -1, b = -1;
 		gchar *c_str;
 

mercurial