Mercurial > pidgin
comparison libpurple/util.c @ 27620:c800bdb5ebbc
Correct the indentation of this macro by removing one level of indentation
here
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 19 Jul 2009 16:28:32 +0000 |
parents | b7ce89597a89 |
children | d1b882345f5b |
comparison
equal
deleted
inserted
replaced
27619:f2c8dd7d4deb | 27620:c800bdb5ebbc |
---|---|
1458 c++; \ | 1458 c++; \ |
1459 } \ | 1459 } \ |
1460 g_string_free(innards, TRUE); \ | 1460 g_string_free(innards, TRUE); \ |
1461 continue; \ | 1461 continue; \ |
1462 } \ | 1462 } \ |
1463 if(!g_ascii_strncasecmp(c, "<" x, strlen("<" x)) && \ | 1463 if(!g_ascii_strncasecmp(c, "<" x, strlen("<" x)) && \ |
1464 (*(c+strlen("<" x)) == '>' || \ | 1464 (*(c+strlen("<" x)) == '>' || \ |
1465 !g_ascii_strncasecmp(c+strlen("<" x), "/>", 2))) { \ | 1465 !g_ascii_strncasecmp(c+strlen("<" x), "/>", 2))) { \ |
1466 if(xhtml) \ | |
1467 xhtml = g_string_append(xhtml, "<" y); \ | |
1468 c += strlen("<" x); \ | |
1469 if(*c != '/') { \ | |
1470 struct purple_parse_tag *pt = g_new0(struct purple_parse_tag, 1); \ | |
1471 pt->src_tag = x; \ | |
1472 pt->dest_tag = y; \ | |
1473 tags = g_list_prepend(tags, pt); \ | |
1466 if(xhtml) \ | 1474 if(xhtml) \ |
1467 xhtml = g_string_append(xhtml, "<" y); \ | 1475 xhtml = g_string_append_c(xhtml, '>'); \ |
1468 c += strlen("<" x); \ | 1476 } else { \ |
1469 if(*c != '/') { \ | 1477 if(xhtml) \ |
1470 struct purple_parse_tag *pt = g_new0(struct purple_parse_tag, 1); \ | 1478 xhtml = g_string_append(xhtml, "/>");\ |
1471 pt->src_tag = x; \ | 1479 } \ |
1472 pt->dest_tag = y; \ | 1480 c = strchr(c, '>') + 1; \ |
1473 tags = g_list_prepend(tags, pt); \ | 1481 continue; \ |
1474 if(xhtml) \ | 1482 } \ |
1475 xhtml = g_string_append_c(xhtml, '>'); \ | |
1476 } else { \ | |
1477 if(xhtml) \ | |
1478 xhtml = g_string_append(xhtml, "/>");\ | |
1479 } \ | |
1480 c = strchr(c, '>') + 1; \ | |
1481 continue; \ | |
1482 } | |
1483 #define ALLOW_TAG(x) ALLOW_TAG_ALT(x, x) | 1483 #define ALLOW_TAG(x) ALLOW_TAG_ALT(x, x) |
1484 void | 1484 void |
1485 purple_markup_html_to_xhtml(const char *html, char **xhtml_out, | 1485 purple_markup_html_to_xhtml(const char *html, char **xhtml_out, |
1486 char **plain_out) | 1486 char **plain_out) |
1487 { | 1487 { |