Package logilab-common-0 :: Package 36 :: Package 1 :: Package ureports :: Module text_writer :: Class TextWriter
[frames] | no frames]

Class TextWriter

source code


format layouts as text
(ReStructured inspiration but not totally handled yet)

Instance Methods
 
begin_format(self, layout) source code
 
visit_section(self, layout)
display a section as text...
source code
 
visit_title(self, layout) source code
 
visit_paragraph(self, layout)
enter a paragraph
source code
 
visit_span(self, layout)
enter a span
source code
 
visit_table(self, layout)
display a table as text
source code
 
default_table(self, layout, table_content, cols_width)
format a table
source code
 
field_table(self, layout, table_content, cols_width)
special case for field table
source code
 
visit_list(self, layout)
display a list layout as text
source code
 
visit_link(self, layout)
add a hyperlink
source code
 
visit_verbatimtext(self, layout)
display a verbatim layout as text (so difficult ;)...
source code
 
visit_text(self, layout)
add some text
source code
Method Details

visit_section(self, layout)

source code 
display a section as text
        

visit_verbatimtext(self, layout)

source code 
display a verbatim layout as text (so difficult ;)