Module formatter :: Class NullFormatter
[hide private]
[frames] | no frames]

_ClassType NullFormatter

A formatter which does nothing.

If the writer parameter is omitted, a NullWriter instance is created. No methods of the writer are called by NullFormatter instances.

Implementations should inherit from this class if implementing a writer interface but don't need to inherit any implementation.

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