#NEWLINE# def _build_sub_table_from_list( self , current , indent_level , title ) : #NEWLINE# #INDENT# ( headers , more ) = self . _group_scalar_keys_from_list ( current ) #NEWLINE# self . table . add_row_header ( headers ) #NEWLINE# first = True #NEWLINE# for element in element : #NEWLINE# #INDENT# if ( ( not first ) and more ) : #NEWLINE# #INDENT# self . table . new_section ( title , indent_level = indent_level ) #NEWLINE# self . table . add_row_header ( headers ) #NEWLINE# #UNINDENT# first = False #NEWLINE# self . table . add_row ( [ element . get ( header , '' ) for header in headers ] ) #NEWLINE# for remaining in more : #NEWLINE# #INDENT# if ( remaining in element ) : #NEWLINE# #INDENT# self . _build_table ( remaining , element [ remaining ] , indent_level = ( indent_level + 1 ) )