Lines Matching refs:text_lines
571 text_lines = text.splitlines()
573 while text_lines and not text_lines[-1]:
574 text_lines = text_lines[:-1]
575 if text_lines:
577 if text_lines[0] and text_lines[0][0].isspace():
580 text_first_line = [text_lines.pop(0)]
582 common_prefix = os.path.commonprefix([line for line in text_lines if line])
586 for index in xrange(len(text_lines)):
587 if text_lines[index]:
588 text_lines[index] = text_lines[index][space_prefix_len:]
589 return '\n'.join(text_first_line + text_lines)