# HG changeset patch # User Tim Ringenbach # Date 1086744856 0 # Node ID 5e9018c81bd926b9c0fc48d3be927ca08f63aba2 # Parent f1d87ab17e4166a646bee83dc395e17fc03e43f5 [gaim-migrate @ 10040] Wing says he improved gaim_markup_strip_html. This patch modifies gaim_markup_strip_html to 1. Remove and completely 2. Turn into a tab instead of a space; this will be needed for the msn profile code For #1 above, the / matching does not behave well when fed with technically-correct-but-implausible input, such as and committer: Tailor Script diff -r f1d87ab17e41 -r 5e9018c81bd9 src/util.c --- a/src/util.c Wed Jun 09 01:24:47 2004 +0000 +++ b/src/util.c Wed Jun 09 01:34:16 2004 +0000 @@ -1226,9 +1226,10 @@ /* The following are probably reasonable changes: * - \n should be converted to a normal space * - in addition to
,

and

etc. should also be converted into \n - * - We want to turn #whitespace sequences into a single blank + * - We want to turn #whitespace sequences into a single tab + * - We want to turn into a single tab (for msn profile "parsing") * - We want to turn #whitespace sequences into a single \n - * We should remove all etc. This should be fixed some time + * - and should be completely removed */ char * @@ -1238,6 +1239,7 @@ gboolean visible = TRUE; gboolean closing_td_p = FALSE; gchar *str2; + const gchar *cdata_close_tag = NULL; if(!str) return NULL; @@ -1248,9 +1250,20 @@ { if (str2[i] == '<') { - if (strncasecmp(str2 + i, "", 5) == 0) @@ -1278,6 +1291,7 @@ { k++; } + /* Check for tags which should be mapped to newline */ if (strncasecmp(str2 + i, "

", 3) == 0 || strncasecmp(str2 + i, "