pidgin: 567c0647: Correct the indentation of this macro by...

markdoliner at pidgin.im markdoliner at pidgin.im
Sun Jul 19 12:30:28 EDT 2009


-----------------------------------------------------------------
Revision: 567c064768c5476d5561dc04df996fb60c1aaec2
Ancestor: cd5f760843cb69691c8699a100dfbe87e16e9b68
Author: markdoliner at pidgin.im
Date: 2009-07-19T16:28:32
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/567c064768c5476d5561dc04df996fb60c1aaec2

Modified files:
        libpurple/util.c

ChangeLog: 

Correct the indentation of this macro by removing one level of indentation
here

-------------- next part --------------
============================================================
--- libpurple/util.c	e49ae7f95074cb08e23f05604395f897703bfea9
+++ libpurple/util.c	6be57b7a1d754e29220193f907ba6449100ed933
@@ -1460,26 +1460,26 @@ struct purple_parse_tag {
 						g_string_free(innards, TRUE); \
 						continue; \
 					} \
-						if(!g_ascii_strncasecmp(c, "<" x, strlen("<" x)) && \
-								(*(c+strlen("<" x)) == '>' || \
-								 !g_ascii_strncasecmp(c+strlen("<" x), "/>", 2))) { \
+					if(!g_ascii_strncasecmp(c, "<" x, strlen("<" x)) && \
+							(*(c+strlen("<" x)) == '>' || \
+							 !g_ascii_strncasecmp(c+strlen("<" x), "/>", 2))) { \
+						if(xhtml) \
+							xhtml = g_string_append(xhtml, "<" y); \
+						c += strlen("<" x); \
+						if(*c != '/') { \
+							struct purple_parse_tag *pt = g_new0(struct purple_parse_tag, 1); \
+							pt->src_tag = x; \
+							pt->dest_tag = y; \
+							tags = g_list_prepend(tags, pt); \
 							if(xhtml) \
-								xhtml = g_string_append(xhtml, "<" y); \
-							c += strlen("<" x); \
-							if(*c != '/') { \
-								struct purple_parse_tag *pt = g_new0(struct purple_parse_tag, 1); \
-								pt->src_tag = x; \
-								pt->dest_tag = y; \
-								tags = g_list_prepend(tags, pt); \
-								if(xhtml) \
-									xhtml = g_string_append_c(xhtml, '>'); \
-							} else { \
-								if(xhtml) \
-									xhtml = g_string_append(xhtml, "/>");\
-							} \
-							c = strchr(c, '>') + 1; \
-							continue; \
-						}
+								xhtml = g_string_append_c(xhtml, '>'); \
+						} else { \
+							if(xhtml) \
+								xhtml = g_string_append(xhtml, "/>");\
+						} \
+						c = strchr(c, '>') + 1; \
+						continue; \
+					} \
 #define ALLOW_TAG(x) ALLOW_TAG_ALT(x, x)
 void
 purple_markup_html_to_xhtml(const char *html, char **xhtml_out,


More information about the Commits mailing list