Lines Matching refs:chunks
388 chunks = re.split(r'( +|-+)', text)
389 chunks = [ch for ch in chunks if ch] # ' - ' results in empty strings
392 while chunks:
396 while chunks:
397 l = len(chunks[0])
399 cur_line.append(chunks[0])
400 del chunks[0]
408 if chunks: # any chunks left to process?
413 cur_line.append(chunks[0][0:width])
414 chunks[0] = chunks[0][width:]
419 if chunks[0][0] == ' ':
420 del chunks[0]