Home | History | Annotate | Download | only in python2.7

Lines Matching refs:indent

192         assert self._current_indent >= 0, 'Indent decreased below 0.'
334 def get_lines(parts, indent, prefix=None):
340 line_len = len(indent) - 1
343 lines.append(indent + ' '.join(line))
345 line_len = len(indent) - 1
349 lines.append(indent + ' '.join(line))
351 lines[0] = lines[0][len(indent):]
356 indent = ' ' * (len(prefix) + len(prog) + 1)
358 lines = get_lines([prog] + opt_parts, indent, prefix)
359 lines.extend(get_lines(pos_parts, indent))
361 lines = get_lines([prog] + pos_parts, indent, prefix)
367 indent = ' ' * len(prefix)
369 lines = get_lines(parts, indent)
372 lines.extend(get_lines(opt_parts, indent))
373 lines.extend(get_lines(pos_parts, indent))
482 indent = ' ' * self._current_indent
483 return self._fill_text(text, text_width, indent) + '\n\n'
618 def _fill_text(self, text, width, indent):
620 return _textwrap.fill(text, width, initial_indent=indent,
621 subsequent_indent=indent)
634 def _fill_text(self, text, width, indent):
635 return ''.join([indent + line for line in text.splitlines(True)])