#NEWLINE# def getFormatString( self ) : #NEWLINE# #INDENT# '\n        Returns the print format.\n        ' #NEWLINE# format_string = [ ] #NEWLINE# messages_print = min ( 4 , self . num_messages ) #NEWLINE# for msg in range ( messages_print ) : #NEWLINE# #INDENT# format_string . append ( 'x{}r' . format ( msg ) ) #NEWLINE# format_string . append ( 'y{}r' . format ( msg ) ) #NEWLINE# #UNINDENT# format_string += [ 'dx1r' , 'dy1r' , 'key' ] #NEWLINE# return msg