# HG changeset patch # User Mark Doliner # Date 1248020912 0 # Node ID c800bdb5ebbc99b0fa3a66f29d9d0f5e0a8124da # Parent f2c8dd7d4deb3e5c0b277a8a1cd08a0cc3af356e Correct the indentation of this macro by removing one level of indentation here diff -r f2c8dd7d4deb -r c800bdb5ebbc libpurple/util.c --- a/libpurple/util.c Sun Jul 19 16:19:45 2009 +0000 +++ b/libpurple/util.c Sun Jul 19 16:28:32 2009 +0000 @@ -1460,26 +1460,26 @@ 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,