diff plugins/spellchk.c @ 1873:08ac51210d09

[gaim-migrate @ 1883] la la la la la la. cleanups. and proxy for napster. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 21 May 2001 23:14:41 +0000
parents fd60aa357882
children 8de58cd2892f
line wrap: on
line diff
--- a/plugins/spellchk.c	Mon May 21 17:38:20 2001 +0000
+++ b/plugins/spellchk.c	Mon May 21 23:14:41 2001 +0000
@@ -163,7 +163,7 @@
 	for (pos = 0; pos < strlen(m); pos++) {
 		switch (state) {
 		case 0: /* expecting word */
-			if (isalnum(m[pos])) {
+			if (!isspace(m[pos]) && !ispunct(m[pos])) {
 				count++;
 				state = 1;
 			} else if (m[pos] == '<')
@@ -172,7 +172,7 @@
 		case 1: /* inside word */
 			if (m[pos] == '<')
 				state = 2;
-			else if (!isalnum(m[pos]))
+			else if (isspace(m[pos]) || ispunct(m[pos]))
 				state = 0;
 			break;
 		case 2: /* inside HTML tag */