def ttfa_yaml_formatter(table_dict):
 data_string = table_dict['data'].strip()
 data_list = data_string.split('\n')
 table_string = 'TTFA: {\n'
 for definition_string in data_list:
  definition_list = definition_string.split('=')
  field = definition_list[0].strip()
  if (len(definition_list) > 1):
   value = definition_list[1].strip()
  else:
   value = "''"
  table_string = (((((table_string + (' ' * 4)) + field) + ': ') + value) + ',\n')
 table_string = (table_string + '}\n\n')
 return table_string

def ttfa_yaml_formatter ( table_dict ) : data_string = table_dict [ 'data' ] . strip ( ) data_list = data_string . split ( '\n' ) table_string = 'TTFA: {\n' for definition_string in data_list : definition_list = definition_string . split ( '=' ) field = definition_list [ 0 ] . strip ( ) if ( len ( definition_list ) > 1 ) : value = definition_list [ 1 ] . strip ( ) else : value = "''" table_string = ( ( ( ( ( table_string + ( ' ' * 4 ) ) + field ) + ': ' ) + value ) + ',\n' ) table_string = ( table_string + '}\n\n' ) return table_string
formats the yaml table string for the ttfautohint ttfa table .