# HG changeset patch # User Sadrul Habib Chowdhury # Date 1269574631 0 # Node ID 41142f2bcafb2064f30c3e0c17290b849079af0c # Parent 72fd8c6144a2d3e3ea369d27363ffb2b19ba8166 Ignore some tags at the beginning of a message. This change ignores some tags (e.g.

,

  • etc.) and does not convert them to newline when they are at the beginning of a message. This fixes an issue in finch where some messages show up with a newline at the front. diff -r 72fd8c6144a2 -r 41142f2bcafb libpurple/util.c --- a/libpurple/util.c Thu Mar 25 15:49:43 2010 +0000 +++ b/libpurple/util.c Fri Mar 26 03:37:11 2010 +0000 @@ -1957,13 +1957,14 @@ } } - /* Check for tags which should be mapped to newline */ - else if (g_ascii_strncasecmp(str2 + i, "

    ", 3) == 0 - || g_ascii_strncasecmp(str2 + i, "", 3) == 0 + || g_ascii_strncasecmp(str2 + i, "", 8) == 0) { str2[j++] = '\n';