formatter.DumbWriter¶
-
class
formatter.DumbWriter(file=None, maxcol=72)[source]¶ Simple writer class which writes output on the file object passed in as the file parameter or, if file is omitted, on standard output. The output is simply word-wrapped to the number of columns specified by the maxcol parameter. This class is suitable for reflowing a sequence of paragraphs.
Methods¶
__init__([file, maxcol]) |
|
flush() |
|
new_alignment(align) |
|
new_font(font) |
|
new_margin(margin, level) |
|
new_spacing(spacing) |
|
new_styles(styles) |
|
reset() |
|
send_flowing_data(data) |
|
send_hor_rule(*args, **kw) |
|
send_label_data(data) |
|
send_line_break() |
|
send_literal_data(data) |
|
send_paragraph(blankline) |