Revision 86432a1ad6726e13fd00094931789b522aafdf80

marv_sf at pidgin.im marv_sf at pidgin.im
Wed Apr 11 01:21:19 EDT 2007


o   -----------------------------------------------------------------
|   Revision: 86432a1ad6726e13fd00094931789b522aafdf80
|   Ancestor: eaff7df5fd55f598388efa68615b975856361eac
|   Author: marv_sf
|   Date: 2004-12-15T16:30:53
|   Branch: im.pidgin.gaim.oldstatus
|   
|   Modified files:
|           src/protocols/yahoo/util.c
|   
|   ChangeLog: 
|   
|   [gaim-migrate @ 11606]
|   Evans absz patch to oldstatus.
|   ============================================================
|   --- src/protocols/yahoo/util.c	0abc4726e8b70e654604912a712726152dec49cd
|   +++ src/protocols/yahoo/util.c	d757614b39b746e4fd98ad0f3d8b3f1d671b71f6
|   @@ -218,6 +218,8 @@ static int point_to_html(int x)
|    		return 6;
|    	return 7;
|    }
|   +
|   +/* The Yahoo size tag is actually an absz tag; convert it to an HTML size, and include both tags */
|    static void _font_tags_fix_size(GString *tag, GString *dest)
|    {
|    	char *x, *end;
|   @@ -227,10 +229,13 @@ static void _font_tags_fix_size(GString 
|    		while (*x && !g_ascii_isdigit(*x))
|    			x++;
|    		if (*x) {
|   +			int htmlsize;
|   +
|    			size = strtol(x, &end, 10);
|   -			size = point_to_html(size);
|   +			htmlsize = point_to_html(size);
|    			g_string_append_len(dest, tag->str, x - tag->str);
|   -			g_string_append_printf(dest, "%d", size);
|   +			g_string_append_printf(dest, "%d", htmlsize);
|   +			g_string_append_printf(dest, "\" absz=\"%d", size);
|    			g_string_append(dest, end);
|    		} else {
|    			g_string_append(dest, tag->str);
|   @@ -248,7 +253,6 @@ char *yahoo_codes_to_html(const char *x)
|    	int i, j, xs, nomoreendtags = 0; /* s/endtags/closinganglebrackets */
|    	char *match, *ret;
|    
|   -
|    	s = g_string_sized_new(strlen(x));
|    
|    	for (i = 0, xs = strlen(x); i < xs; i++) {

To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from 86432a1ad6726e13fd00094931789b522aafdf80


More information about the Commits mailing list