Revision b9eebf2a

b/kamaki/cli/utils/__init__.py
411 411
        except IndexError:
412 412
            break
413 413
        if part:
414
            terms += part
414
            if tpart and not tpart[-1].endswith(' '):
415
                terms[-1] += ' '.join(part)
416
            else:
417
                terms += part
415 418
    return terms
416 419

  
417 420

  
b/kamaki/cli/utils/test.py
418 418
                ('"parsable"', ['parsable']),
419 419
                ('"parse" out', ['parse', 'out']),
420 420
                ('"one', ['"one']),
421
                ('two" or" more"', ['two', ' or', 'more"']),
421
                ('two" or" more"', ['two or', 'more"']),
422 422
                ('Go "down \'deep " deeper \'bottom \' up" go\' up" !', [
423 423
                    'Go', "down 'deep ", 'deeper', 'bottom ',
424
                    'up', " go' up", '!']),
424
                    'up go\' up', '!']),
425 425
                ('Is "this" a \'parsed\' string?', [
426 426
                    'Is', 'this', 'a', 'parsed', 'string?'])):
427 427
            self.assertEqual(split_input(line), expected)

Also available in: Unified diff