(self, title, contents)
return self.bold(title) + '\n' + clean_contents + '\n\n'
Format a section with a given heading.
Format a section with a given heading.
Format a section with a given heading .
def section(self, title, contents):
        """Format a section with a given heading."""
        clean_contents = self.indent(contents).rstrip()
        return self.bold(title) + '\n' + clean_contents + '\n\n'
def section ( self , title , contents ) : clean_contents = self . indent ( contents ) . rstrip ( ) return self . bold ( title ) + '\n' + clean_contents + '\n\n'