Format a section with a given heading.
(self, title, contents)
| 1241 | return '\n'.join(lines) |
| 1242 | |
| 1243 | def section(self, title, contents): |
| 1244 | """Format a section with a given heading.""" |
| 1245 | clean_contents = self.indent(contents).rstrip() |
| 1246 | return self.bold(title) + '\n' + clean_contents + '\n\n' |
| 1247 | |
| 1248 | # ---------------------------------------------- type-specific routines |
| 1249 |