Format a section with a given heading.
(self, title, contents)
| 1286 | return '\n'.join(lines) |
| 1287 | |
| 1288 | def section(self, title, contents): |
| 1289 | """Format a section with a given heading.""" |
| 1290 | clean_contents = self.indent(contents).rstrip() |
| 1291 | return self.bold(title) + '\n' + clean_contents + '\n\n' |
| 1292 | |
| 1293 | # ---------------------------------------------- type-specific routines |
| 1294 |