mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-21 02:41:11 +00:00
fix whitespace handling error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38100 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
086003eb7d
commit
09f146a0b6
1 changed files with 6 additions and 2 deletions
|
@ -449,7 +449,7 @@ static BOOL commandIsRepeat (NSString *string)
|
||||||
|
|
||||||
if (words == nil || [words count] == 0)
|
if (words == nil || [words count] == 0)
|
||||||
{
|
{
|
||||||
cmd = @"";
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -599,7 +599,11 @@ static BOOL commandIsRepeat (NSString *string)
|
||||||
wordsEnum = [[_line componentsSeparatedByString: @" "] objectEnumerator];
|
wordsEnum = [[_line componentsSeparatedByString: @" "] objectEnumerator];
|
||||||
while ((word = [wordsEnum nextObject]) != nil)
|
while ((word = [wordsEnum nextObject]) != nil)
|
||||||
{
|
{
|
||||||
[words addObject: [word stringByTrimmingSpaces]];
|
word = [word stringByTrimmingSpaces];
|
||||||
|
if ([word length] > 0)
|
||||||
|
{
|
||||||
|
[words addObject: word];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* invoke server */
|
/* invoke server */
|
||||||
|
|
Loading…
Reference in a new issue