#NEWLINE# def format( self , top_indent ) : #NEWLINE# #INDENT# '\n        Args:\n            top_indent (type): Description\n        ' #NEWLINE# s = '' #NEWLINE# if self . section_exists ( 'Summary' ) : #NEWLINE# #INDENT# sec_text = self . get_section ( 'Summary' ) . text #NEWLINE# if sec_text . strip ( ) : #NEWLINE# #INDENT# s += with_bounding_newlines ( sec_text , nleading = 0 , ntrailing = 1 ) #NEWLINE# #UNINDENT# #UNINDENT# for ( _ , section ) in islice ( self . sections . items ( ) , 1 , None ) : #NEWLINE# #INDENT# if ( section is None ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# sec_body = indent_docstr ( section . text , section . section_indent , n = 0 ) #NEWLINE# sec_text = self . _format_section_text ( section . heading , sec_body ) #NEWLINE# s += with_bounding_newlines ( sec_text , nleading = 1 , ntrailing = 1 ) #NEWLINE# #UNINDENT# if self . trailing_newlines : #NEWLINE# #INDENT# s = with_bounding_newlines ( s , ntrailing = self . trailing_newlines ) #NEWLINE# #UNINDENT# s = indent_docstr ( self , top_indent ) #NEWLINE# return s