table.py
def dump_to_remarkup(self):
        """Pretty print the table headers and rows in remarkup format.

        """
        headers, rows = self._headers, self._rows
        max_widths = self._find_max_column_widths(headers, rows)

        # Print the headers.
        sys.stdout.write("|")
        for i in xrange(len(headers)):
            sys.stdout.write(' ')
            _print_entry_centered(headers[i], max_widths[i])
            sys.stdout.write(" |")
        sys.stdout.write('\n')

        sys.stdout.write("|")
        for i in xrange(len(headers)):
            sys.stdout.write("-")
            _print_entry_left('', max_widths[i], filler='-')
            sys.stdout.write("-|")
        sys.stdout.write('\n')

        # Print each row
        for i in xrange(len(self._rows)):
            row = self._rows[i]
            sys.stdout.write("|")
            for i in xrange(len(row)):
                sys.stdout.write(" ")
                _print_entry_left(str(row[i]), max_widths[i])
                sys.stdout.write(" |")
            sys.stdout.write('\n')
Pretty print the table headers and rows in remarkup format.

        
Pretty print the table headers and rows in remarkup format.
Pretty print the table headers and rows in remarkup format .
def dump_to_remarkup(self):
        headers, rows = self._headers, self._rows
        max_widths = self._find_max_column_widths(headers, rows)
        sys.stdout.write("|")
        for i in xrange(len(headers)):
            sys.stdout.write(' ')
            _print_entry_centered(headers[i], max_widths[i])
            sys.stdout.write(" |")
        sys.stdout.write('\n')
        sys.stdout.write("|")
        for i in xrange(len(headers)):
            sys.stdout.write("-")
            _print_entry_left('', max_widths[i], filler='-')
            sys.stdout.write("-|")
        sys.stdout.write('\n')
        for i in xrange(len(self._rows)):
            row = self._rows[i]
            sys.stdout.write("|")
            for i in xrange(len(row)):
                sys.stdout.write(" ")
                _print_entry_left(str(row[i]), max_widths[i])
                sys.stdout.write(" |")
            sys.stdout.write('\n')
def dump_to_remarkup ( self ) : headers , rows = self . _headers , self . _rows max_widths = self . _find_max_column_widths ( headers , rows ) sys . stdout . write ( "|" ) for i in xrange ( len ( headers ) ) : sys . stdout . write ( ' ' ) _print_entry_centered ( headers [ i ] , max_widths [ i ] ) sys . stdout . write ( " |" ) sys . stdout . write ( '\n' ) sys . stdout . write ( "|" ) for i in xrange ( len ( headers ) ) : sys . stdout . write ( "-" ) _print_entry_left ( '' , max_widths [ i ] , filler = '-' ) sys . stdout . write ( "-|" ) sys . stdout . write ( '\n' ) for i in xrange ( len ( self . _rows ) ) : row = self . _rows [ i ] sys . stdout . write ( "|" ) for i in xrange ( len ( row ) ) : sys . stdout . write ( " " ) _print_entry_left ( str ( row [ i ] ) , max_widths [ i ] ) sys . stdout . write ( " |" ) sys . stdout . write ( '\n' )
Pretty print the table headers and rows in remarkup format.
Pretty print the table headers and rows in remarkup format .
"""Pretty print the table headers and rows in remarkup format.

        """ # Print the headers. # Print each row
self