(self, section, max_width, stream)
| 286 | self._render_rows(section, max_width, stream) |
| 287 | |
| 288 | def _render_title(self, section, max_width, stream): |
| 289 | # The title consists of: |
| 290 | # title : | This is the title | |
| 291 | # bottom_border: ---------------------------- |
| 292 | if section.title: |
| 293 | title = self._styler.style_title(section.title) |
| 294 | stream.write( |
| 295 | center_text( |
| 296 | title, max_width, '|', '|', get_text_length(section.title) |
| 297 | ) |
| 298 | + '\n' |
| 299 | ) |
| 300 | if not section.headers and not section.rows: |
| 301 | stream.write('+%s+' % ('-' * (max_width - 2)) + '\n') |
| 302 | |
| 303 | def _render_column_titles(self, section, max_width, stream): |
| 304 | if not section.headers: |
no test coverage detected