#NEWLINE# def add_name( self , node ) : #NEWLINE# #INDENT# "Append self.options['name'] to node['names'] if it exists.\n\n        Also normalize the name string and register it as explicit target.\n        " #NEWLINE# if ( 'name' in self . options ) : #NEWLINE# #INDENT# name = nodes . fully_normalize_name ( self . options . pop ( 'name' ) ) #NEWLINE# if ( 'name' in node ) : #NEWLINE# #INDENT# del node [ 'name' ] #NEWLINE# #UNINDENT# node [ 'names' ] . append ( name ) #NEWLINE# self . state . document . note_explicit_target ( node , self )