formatter
index
/usr/lib/python1.5/formatter.py
 

   
Modules
                        
string
sys

   
Classes
                        
AbstractFormatter
NullFormatter
NullWriter
AbstractWriter
DumbWriter

   
class AbstractFormatter
              
__init__(self, writer)
add_flowing_data(self, data, whitespace='\011\012\013\014\015 ', join=<built-in function join>, split=<built-in function split>)
add_hor_rule(self, *args, **kw)
add_label_data(self, format, counter, blankline=None)
add_line_break(self)
add_literal_data(self, data)
assert_line_data(self, flag=1)
end_paragraph(self, blankline)
flush_softspace(self)
format_counter(self, format, counter)
format_letter(self, case, counter)
format_roman(self, case, counter)
pop_alignment(self)
pop_font(self)
pop_margin(self)
pop_style(self, n=1)
push_alignment(self, align)
push_font(self, (size, i, b, tt))
push_margin(self, margin)
push_style(self, *styles)
set_spacing(self, spacing)

   
class AbstractWriter(NullWriter)
              
__init__(self)
new_alignment(self, align)
new_font(self, font)
new_margin(self, margin, level)
new_spacing(self, spacing)
new_styles(self, styles)
send_flowing_data(self, data)
send_hor_rule(self, *args, **kw)
send_label_data(self, data)
send_line_break(self)
send_literal_data(self, data)
send_paragraph(self, blankline)

   
class DumbWriter(NullWriter)
              
__init__(self, file=None, maxcol=72)
reset(self)
send_flowing_data(self, data)
send_hor_rule(self, *args, **kw)
send_line_break(self)
send_literal_data(self, data)
send_paragraph(self, blankline)

   
class NullFormatter
              
__init__(self, writer=None)
add_flowing_data(self, data)
add_hor_rule(self, *args, **kw)
add_label_data(self, format, counter, blankline=None)
add_line_break(self)
add_literal_data(self, data)
assert_line_data(self, flag=1)
end_paragraph(self, blankline)
flush_softspace(self)
pop_alignment(self)
pop_font(self)
pop_margin(self)
pop_style(self, n=1)
push_alignment(self, align)
push_font(self, x)
push_margin(self, margin)
push_style(self, *styles)
set_spacing(self, spacing)

   
class NullWriter
            Minimal writer interface to use in testing & inheritance.
              
__init__(self)
flush(self)
new_alignment(self, align)
new_font(self, font)
new_margin(self, margin, level)
new_spacing(self, spacing)
new_styles(self, styles)
send_flowing_data(self, data)
send_hor_rule(self, *args, **kw)
send_label_data(self, data)
send_line_break(self)
send_literal_data(self, data)
send_paragraph(self, blankline)

   
Constants
                        
StringType = <type 'string'>