Lines Matching refs:indent

593 def TextWrap(text, length=None, indent='', firstline_indent=None, tabs='    '):
603 indent: indent for all but first line
604 firstline_indent: indent for first line; if None, fall back to indent
611 FlagsError: if indent not shorter than length
617 if indent is None:
618 indent = ''
619 if len(indent) >= length:
622 # with indent (or firstline_indent if available) and then appended
626 line = indent
630 raise FlagsError('First line indent must be shorter than length')
660 if (((result and line != indent) or
672 if len(line) + len(word) > length and len(indent) + len(word) <= length:
674 line = indent + word
679 line = indent
683 # line with indent and repeat, or add a space if we're done (word
685 # (e.g. indent + word longer than allowed line length).
690 line = indent
695 # current line is just the indent but we had content in during this
697 if (result and line != indent) or (not result and line != firstline_indent):
701 line = indent
1461 flaghelp = TextWrap(flaghelp, indent=prefix+" ",
1466 indent=prefix+" ")
1470 indent=prefix+" ")
1719 indent = ' '
1721 indent)
1728 _WriteSimpleXMLElement(outfile, 'usage', usage_doc, indent)
1743 is_key=is_key, indent=indent)
1789 def _WriteSimpleXMLElement(outfile, name, value, indent):
1797 indent: A string, prepended to each line of generated output.
1804 outfile.write('%s<%s>%s</%s>\n' % (indent, name, safe_value_str, name))
1937 def WriteInfoInXMLFormat(self, outfile, module_name, is_key=False, indent=''):
1950 indent: A string that is prepended to each generated line.
1952 outfile.write(indent + '<flag>\n')
1953 inner_indent = indent + ' '
1976 outfile.write(indent + '</flag>\n')
1978 def _WriteCustomInfoInXMLFormat(self, outfile, indent):
1985 indent: A string that is prepended to each generated line.
1989 self.parser.WriteCustomInfoInXMLFormat(outfile, indent)
2059 def WriteCustomInfoInXMLFormat(self, outfile, indent):
2456 def WriteCustomInfoInXMLFormat(self, outfile, indent):
2458 _WriteSimpleXMLElement(outfile, 'lower_bound', self.lower_bound, indent)
2460 _WriteSimpleXMLElement(outfile, 'upper_bound', self.upper_bound, indent)
2619 def _WriteCustomInfoInXMLFormat(self, outfile, indent):
2621 _WriteSimpleXMLElement(outfile, 'enum_value', enum_value, indent)
2672 def WriteCustomInfoInXMLFormat(self, outfile, indent):
2673 BaseListParser.WriteCustomInfoInXMLFormat(self, outfile, indent)
2674 _WriteSimpleXMLElement(outfile, 'list_separator', repr(','), indent)
2683 def WriteCustomInfoInXMLFormat(self, outfile, indent):
2684 BaseListParser.WriteCustomInfoInXMLFormat(self, outfile, indent)
2688 _WriteSimpleXMLElement(outfile, 'list_separator', repr(ws_char), indent)