Format a section with a given heading.
(self, title, contents)
| 1234 | return '\n'.join(lines) |
| 1235 | |
| 1236 | def section(self, title, contents): |
| 1237 | """Format a section with a given heading.""" |
| 1238 | clean_contents = self.indent(contents).rstrip() |
| 1239 | return self.bold(title) + '\n' + clean_contents + '\n\n' |
| 1240 | |
| 1241 | # ---------------------------------------------- type-specific routines |
| 1242 |