Mercurial > pidgin-twitter
comparison main.c @ 341:b41f1bf69cba
- twitter still requires preceding white space on a hash tag in almost all case.
- include zenkaku-space in UTF-8 encoding to the preceding white space. it deviates from twitter specification but convenient to Asian users.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 18 Oct 2009 17:38:40 +0900 |
parents | 2b79bad516e6 |
children | 2e37e715e4a6 |
comparison
equal
deleted
inserted
replaced
340:2b79bad516e6 | 341:b41f1bf69cba |
---|---|
240 | 240 |
241 g_free(match1); | 241 g_free(match1); |
242 g_free(match2); | 242 g_free(match2); |
243 } | 243 } |
244 else if(which == TAG_TWITTER && service == twitter_service) { | 244 else if(which == TAG_TWITTER && service == twitter_service) { |
245 gchar *match = g_match_info_fetch(match_info, 1); /* search tag */ | 245 gchar *match1 = g_match_info_fetch(match_info, 1); /* white space */ |
246 g_snprintf(sub, SUBST_BUF_SIZE, TAG_FORMAT_TWITTER, match, match); | 246 gchar *match2 = g_match_info_fetch(match_info, 2); /* search tag */ |
247 g_free(match); | 247 g_snprintf(sub, SUBST_BUF_SIZE, TAG_FORMAT_TWITTER, |
248 match1 ? match1 : "", match2, match2); | |
249 g_free(match1); | |
250 g_free(match2); | |
248 } | 251 } |
249 else if(which == TAG_IDENTICA && service == identica_service) { | 252 else if(which == TAG_IDENTICA && service == identica_service) { |
250 gchar *match = g_match_info_fetch(match_info, 1); | 253 gchar *match = g_match_info_fetch(match_info, 1); |
251 gchar *link = g_ascii_strdown(match, -1); | 254 gchar *link = g_ascii_strdown(match, -1); |
252 purple_str_strip_char(link, '-'); | 255 purple_str_strip_char(link, '-'); |