# HG changeset patch # User Nathan Walp # Date 1080712428 0 # Node ID 389e2b9dae6a77b232926288425b0a9a133f809b # Parent ef3d81aa663a5e5d8bfa898ccf5be97fc46be6d8 [gaim-migrate @ 9273] this should get rid of the on the ends of lines from AIM users in logs committer: Tailor Script diff -r ef3d81aa663a -r 389e2b9dae6a src/util.c --- a/src/util.c Wed Mar 31 03:10:37 2004 +0000 +++ b/src/util.c Wed Mar 31 05:53:48 2004 +0000 @@ -758,11 +758,19 @@ g_free(tag->data); tags = g_list_remove(tags, tag->data); } else { - /* we tried to close a tag we never opened! escape it - * and move on */ - xhtml = g_string_append(xhtml, "<"); - plain = g_string_append_c(plain, '<'); - c++; + /* a closing tag we weren't expecting... + * we'll let it slide, if it's really a tag...if it's + * just a ') { + c = end+1; + } else { + xhtml = g_string_append(xhtml, "<"); + plain = g_string_append_c(plain, '<'); + c++; + } } } else { /* opening tag */ ALLOW_TAG("a");