From fb71ae4c86c258d2f19c9b35e5aa00d69d95b6d9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Jul 1999 09:40:46 +0000 Subject: (xfields): Only s separate fields, not s. --- src/join.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/join.c b/src/join.c index 34bdd1ce1..d71fe8bf0 100644 --- a/src/join.c +++ b/src/join.c @@ -200,7 +200,7 @@ xfields (struct line *line) if (!tab) { /* Skip leading blanks before the first field. */ - while (ptr < lim && ISSPACE (*ptr)) + while (ptr < lim && ISBLANK (*ptr)) ++ptr; } @@ -222,15 +222,15 @@ xfields (struct line *line) unsigned char *beg; beg = ptr; - while (ptr < lim && !ISSPACE (*ptr)) + while (ptr < lim && !ISBLANK (*ptr)) ++ptr; ADD_FIELD (line, beg, ptr - beg); - while (ptr < lim && ISSPACE (*ptr)) + while (ptr < lim && ISBLANK (*ptr)) ++ptr; } } - if (ptr > line->beg && ((!tab && ISSPACE (ptr[-1])) || ptr[-1] == tab)) + if (ptr > line->beg && ((!tab && ISBLANK (ptr[-1])) || ptr[-1] == tab)) { /* Add one more (empty) field because the last character of the line was a delimiter. */ -- cgit v1.2.3-70-g09d2