changeset 49:82b2b3767311

fixed indentation of strip_html_markup()
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 13 May 2008 22:19:54 +0900
parents 42869098eda3
children 3e0d4fd75b03
files pidgin-twitter.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Tue May 13 21:25:47 2008 +0900
+++ b/pidgin-twitter.c	Tue May 13 22:19:54 2008 +0900
@@ -98,7 +98,7 @@
 static void init_plugin(PurplePlugin *plugin);
 
 
-/* tentative: this function is a modified clone of purple_markup_strip_html() */
+/* this function is a modified clone of purple_markup_strip_html() */
 static char *
 strip_html_markup(const char *str)
 {
@@ -123,7 +123,7 @@
 			{
 				/* Note: Don't even assume any other tag is a tag in CDATA */
 				if (g_ascii_strncasecmp(str2 + i, cdata_close_tag,
-						strlen(cdata_close_tag)) == 0)
+                                        strlen(cdata_close_tag)) == 0)
 				{
 					i += strlen(cdata_close_tag) - 1;
 					cdata_close_tag = NULL;
@@ -204,12 +204,12 @@
 
 				/* Check for tags which should be mapped to newline */
 				else if (g_ascii_strncasecmp(str2 + i, "<p>", 3) == 0
-				 || g_ascii_strncasecmp(str2 + i, "<tr", 3) == 0
-				 || g_ascii_strncasecmp(str2 + i, "<br", 3) == 0
-				 || g_ascii_strncasecmp(str2 + i, "<hr", 3) == 0
-				 || g_ascii_strncasecmp(str2 + i, "<li", 3) == 0
-				 || g_ascii_strncasecmp(str2 + i, "<div", 4) == 0
-				 || g_ascii_strncasecmp(str2 + i, "</table>", 8) == 0)
+                         || g_ascii_strncasecmp(str2 + i, "<tr", 3) == 0
+                         || g_ascii_strncasecmp(str2 + i, "<br", 3) == 0
+                         || g_ascii_strncasecmp(str2 + i, "<hr", 3) == 0
+                         || g_ascii_strncasecmp(str2 + i, "<li", 3) == 0
+                         || g_ascii_strncasecmp(str2 + i, "<div", 4) == 0
+                         || g_ascii_strncasecmp(str2 + i, "</table>", 8) == 0)
 				{
 					str2[j++] = '\n';
 				}