diff options
Diffstat (limited to 'src/join.c')
-rw-r--r-- | src/join.c | 8 |
1 files 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. */ |